1//===---- TargetInfo.h - Encapsulate target details -------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// These classes wrap the information about a call or function
10// definition used to handle ABI compliancy.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_LIB_CODEGEN_TARGETINFO_H
15#define LLVM_CLANG_LIB_CODEGEN_TARGETINFO_H
16
17#include "CGBuilder.h"
18#include "CodeGenModule.h"
19#include "CGValue.h"
20#include "clang/AST/Type.h"
21#include "clang/Basic/LLVM.h"
22#include "clang/Basic/SyncScope.h"
23#include "llvm/ADT/SmallString.h"
24#include "llvm/ADT/StringRef.h"
25
26namespace llvm {
27class Constant;
28class GlobalValue;
29class Type;
30class Value;
31}
32
33namespace clang {
34class Decl;
35
36namespace CodeGen {
37class ABIInfo;
38class CallArgList;
39class CodeGenFunction;
40class CGBlockInfo;
41class SwiftABIInfo;
42
43/// TargetCodeGenInfo - This class organizes various target-specific
44/// codegeneration issues, like target-specific attributes, builtins and so
45/// on.
46class TargetCodeGenInfo {
47 std::unique_ptr<ABIInfo> Info;
48
49protected:
50 // Target hooks supporting Swift calling conventions. The target must
51 // initialize this field if it claims to support these calling conventions
52 // by returning true from TargetInfo::checkCallingConvention for them.
53 std::unique_ptr<SwiftABIInfo> SwiftInfo;
54
55 // Returns ABI info helper for the target. This is for use by derived classes.
56 template <typename T> const T &getABIInfo() const {
57 return static_cast<const T &>(*Info);
58 }
59
60public:
61 TargetCodeGenInfo(std::unique_ptr<ABIInfo> Info);
62 virtual ~TargetCodeGenInfo();
63
64 /// getABIInfo() - Returns ABI info helper for the target.
65 const ABIInfo &getABIInfo() const { return *Info; }
66
67 /// Returns Swift ABI info helper for the target.
68 const SwiftABIInfo &getSwiftABIInfo() const {
69 assert(SwiftInfo && "Swift ABI info has not been initialized");
70 return *SwiftInfo;
71 }
72
73 /// setTargetAttributes - Provides a convenient hook to handle extra
74 /// target-specific attributes for the given global.
75 virtual void setTargetAttributes(const Decl *D, llvm::GlobalValue *GV,
76 CodeGen::CodeGenModule &M) const {}
77
78 /// emitTargetMetadata - Provides a convenient hook to handle extra
79 /// target-specific metadata for the given globals.
80 virtual void emitTargetMetadata(
81 CodeGen::CodeGenModule &CGM,
82 const llvm::MapVector<GlobalDecl, StringRef> &MangledDeclNames) const {}
83
84 /// Provides a convenient hook to handle extra target-specific globals.
85 virtual void emitTargetGlobals(CodeGen::CodeGenModule &CGM) const {}
86
87 /// Any further codegen related checks that need to be done on a function
88 /// signature in a target specific manner.
89 virtual void checkFunctionABI(CodeGenModule &CGM,
90 const FunctionDecl *Decl) const {}
91
92 /// Any further codegen related checks that need to be done on a function call
93 /// in a target specific manner.
94 virtual void checkFunctionCallABI(CodeGenModule &CGM, SourceLocation CallLoc,
95 const FunctionDecl *Caller,
96 const FunctionDecl *Callee,
97 const CallArgList &Args) const {}
98
99 /// Determines the size of struct _Unwind_Exception on this platform,
100 /// in 8-bit units. The Itanium ABI defines this as:
101 /// struct _Unwind_Exception {
102 /// uint64 exception_class;
103 /// _Unwind_Exception_Cleanup_Fn exception_cleanup;
104 /// uint64 private_1;
105 /// uint64 private_2;
106 /// };
107 virtual unsigned getSizeOfUnwindException() const;
108
109 /// Controls whether __builtin_extend_pointer should sign-extend
110 /// pointers to uint64_t or zero-extend them (the default). Has
111 /// no effect for targets:
112 /// - that have 64-bit pointers, or
113 /// - that cannot address through registers larger than pointers, or
114 /// - that implicitly ignore/truncate the top bits when addressing
115 /// through such registers.
116 virtual bool extendPointerWithSExt() const { return false; }
117
118 /// Determines the DWARF register number for the stack pointer, for
119 /// exception-handling purposes. Implements __builtin_dwarf_sp_column.
120 ///
121 /// Returns -1 if the operation is unsupported by this target.
122 virtual int getDwarfEHStackPointer(CodeGen::CodeGenModule &M) const {
123 return -1;
124 }
125
126 /// Initializes the given DWARF EH register-size table, a char*.
127 /// Implements __builtin_init_dwarf_reg_size_table.
128 ///
129 /// Returns true if the operation is unsupported by this target.
130 virtual bool initDwarfEHRegSizeTable(CodeGen::CodeGenFunction &CGF,
131 llvm::Value *Address) const {
132 return true;
133 }
134
135 /// Performs the code-generation required to convert a return
136 /// address as stored by the system into the actual address of the
137 /// next instruction that will be executed.
138 ///
139 /// Used by __builtin_extract_return_addr().
140 virtual llvm::Value *decodeReturnAddress(CodeGen::CodeGenFunction &CGF,
141 llvm::Value *Address) const {
142 return Address;
143 }
144
145 /// Performs the code-generation required to convert the address
146 /// of an instruction into a return address suitable for storage
147 /// by the system in a return slot.
148 ///
149 /// Used by __builtin_frob_return_addr().
150 virtual llvm::Value *encodeReturnAddress(CodeGen::CodeGenFunction &CGF,
151 llvm::Value *Address) const {
152 return Address;
153 }
154
155 /// Performs a target specific test of a floating point value for things
156 /// like IsNaN, Infinity, ... Nullptr is returned if no implementation
157 /// exists.
158 virtual llvm::Value *
159 testFPKind(llvm::Value *V, unsigned BuiltinID, CGBuilderTy &Builder,
160 CodeGenModule &CGM) const {
161 assert(V->getType()->isFloatingPointTy() && "V should have an FP type.");
162 return nullptr;
163 }
164
165 /// Corrects the low-level LLVM type for a given constraint and "usual"
166 /// type.
167 ///
168 /// \returns A pointer to a new LLVM type, possibly the same as the original
169 /// on success; 0 on failure.
170 virtual llvm::Type *adjustInlineAsmType(CodeGen::CodeGenFunction &CGF,
171 StringRef Constraint,
172 llvm::Type *Ty) const {
173 return Ty;
174 }
175
176 /// Target hook to decide whether an inline asm operand can be passed
177 /// by value.
178 virtual bool isScalarizableAsmOperand(CodeGen::CodeGenFunction &CGF,
179 llvm::Type *Ty) const {
180 return false;
181 }
182
183 /// Adds constraints and types for result registers.
184 virtual void addReturnRegisterOutputs(
185 CodeGen::CodeGenFunction &CGF, CodeGen::LValue ReturnValue,
186 std::string &Constraints, std::vector<llvm::Type *> &ResultRegTypes,
187 std::vector<llvm::Type *> &ResultTruncRegTypes,
188 std::vector<CodeGen::LValue> &ResultRegDests, std::string &AsmString,
189 unsigned NumOutputs) const {}
190
191 /// doesReturnSlotInterfereWithArgs - Return true if the target uses an
192 /// argument slot for an 'sret' type.
193 virtual bool doesReturnSlotInterfereWithArgs() const { return true; }
194
195 /// Retrieve the address of a function to call immediately before
196 /// calling objc_retainAutoreleasedReturnValue. The
197 /// implementation of objc_autoreleaseReturnValue sniffs the
198 /// instruction stream following its return address to decide
199 /// whether it's a call to objc_retainAutoreleasedReturnValue.
200 /// This can be prohibitively expensive, depending on the
201 /// relocation model, and so on some targets it instead sniffs for
202 /// a particular instruction sequence. This functions returns
203 /// that instruction sequence in inline assembly, which will be
204 /// empty if none is required.
205 virtual StringRef getARCRetainAutoreleasedReturnValueMarker() const {
206 return "";
207 }
208
209 /// Determine whether a call to objc_retainAutoreleasedReturnValue or
210 /// objc_unsafeClaimAutoreleasedReturnValue should be marked as 'notail'.
211 virtual bool markARCOptimizedReturnCallsAsNoTail() const { return false; }
212
213 /// Return a constant used by UBSan as a signature to identify functions
214 /// possessing type information, or 0 if the platform is unsupported.
215 /// This magic number is invalid instruction encoding in many targets.
216 virtual llvm::Constant *
217 getUBSanFunctionSignature(CodeGen::CodeGenModule &CGM) const {
218 return llvm::ConstantInt::get(Ty: CGM.Int32Ty, V: 0xc105cafe);
219 }
220
221 /// Determine whether a call to an unprototyped functions under
222 /// the given calling convention should use the variadic
223 /// convention or the non-variadic convention.
224 ///
225 /// There's a good reason to make a platform's variadic calling
226 /// convention be different from its non-variadic calling
227 /// convention: the non-variadic arguments can be passed in
228 /// registers (better for performance), and the variadic arguments
229 /// can be passed on the stack (also better for performance). If
230 /// this is done, however, unprototyped functions *must* use the
231 /// non-variadic convention, because C99 states that a call
232 /// through an unprototyped function type must succeed if the
233 /// function was defined with a non-variadic prototype with
234 /// compatible parameters. Therefore, splitting the conventions
235 /// makes it impossible to call a variadic function through an
236 /// unprototyped type. Since function prototypes came out in the
237 /// late 1970s, this is probably an acceptable trade-off.
238 /// Nonetheless, not all platforms are willing to make it, and in
239 /// particularly x86-64 bends over backwards to make the
240 /// conventions compatible.
241 ///
242 /// The default is false. This is correct whenever:
243 /// - the conventions are exactly the same, because it does not
244 /// matter and the resulting IR will be somewhat prettier in
245 /// certain cases; or
246 /// - the conventions are substantively different in how they pass
247 /// arguments, because in this case using the variadic convention
248 /// will lead to C99 violations.
249 ///
250 /// However, some platforms make the conventions identical except
251 /// for passing additional out-of-band information to a variadic
252 /// function: for example, x86-64 passes the number of SSE
253 /// arguments in %al. On these platforms, it is desirable to
254 /// call unprototyped functions using the variadic convention so
255 /// that unprototyped calls to varargs functions still succeed.
256 ///
257 /// Relatedly, platforms which pass the fixed arguments to this:
258 /// A foo(B, C, D);
259 /// differently than they would pass them to this:
260 /// A foo(B, C, D, ...);
261 /// may need to adjust the debugger-support code in Sema to do the
262 /// right thing when calling a function with no know signature.
263 virtual bool isNoProtoCallVariadic(const CodeGen::CallArgList &args,
264 const FunctionNoProtoType *fnType) const;
265
266 /// Gets the linker options necessary to link a dependent library on this
267 /// platform.
268 virtual void getDependentLibraryOption(llvm::StringRef Lib,
269 llvm::SmallString<24> &Opt) const;
270
271 /// Gets the linker options necessary to detect object file mismatches on
272 /// this platform.
273 virtual void getDetectMismatchOption(llvm::StringRef Name,
274 llvm::StringRef Value,
275 llvm::SmallString<32> &Opt) const {}
276
277 /// Get LLVM calling convention for OpenCL kernel.
278 virtual unsigned getOpenCLKernelCallingConv() const;
279
280 /// Get target specific null pointer.
281 /// \param T is the LLVM type of the null pointer.
282 /// \param QT is the clang QualType of the null pointer.
283 /// \return ConstantPointerNull with the given type \p T.
284 /// Each target can override it to return its own desired constant value.
285 virtual llvm::Constant *getNullPointer(const CodeGen::CodeGenModule &CGM,
286 llvm::PointerType *T, QualType QT) const;
287
288 /// Get target favored AST address space of a global variable for languages
289 /// other than OpenCL and CUDA.
290 /// If \p D is nullptr, returns the default target favored address space
291 /// for global variable.
292 virtual LangAS getGlobalVarAddressSpace(CodeGenModule &CGM,
293 const VarDecl *D) const;
294
295 /// Get the AST address space for alloca.
296 virtual LangAS getASTAllocaAddressSpace() const { return LangAS::Default; }
297
298 Address performAddrSpaceCast(CodeGen::CodeGenFunction &CGF, Address Addr,
299 LangAS SrcAddr, LangAS DestAddr,
300 llvm::Type *DestTy,
301 bool IsNonNull = false) const;
302
303 /// Perform address space cast of an expression of pointer type.
304 /// \param V is the LLVM value to be casted to another address space.
305 /// \param SrcAddr is the language address space of \p V.
306 /// \param DestAddr is the targeted language address space.
307 /// \param DestTy is the destination LLVM pointer type.
308 /// \param IsNonNull is the flag indicating \p V is known to be non null.
309 virtual llvm::Value *performAddrSpaceCast(CodeGen::CodeGenFunction &CGF,
310 llvm::Value *V, LangAS SrcAddr,
311 LangAS DestAddr, llvm::Type *DestTy,
312 bool IsNonNull = false) const;
313
314 /// Perform address space cast of a constant expression of pointer type.
315 /// \param V is the LLVM constant to be casted to another address space.
316 /// \param SrcAddr is the language address space of \p V.
317 /// \param DestAddr is the targeted language address space.
318 /// \param DestTy is the destination LLVM pointer type.
319 virtual llvm::Constant *performAddrSpaceCast(CodeGenModule &CGM,
320 llvm::Constant *V,
321 LangAS SrcAddr, LangAS DestAddr,
322 llvm::Type *DestTy) const;
323
324 /// Get address space of pointer parameter for __cxa_atexit.
325 virtual LangAS getAddrSpaceOfCxaAtexitPtrParam() const {
326 return LangAS::Default;
327 }
328
329 /// Get the syncscope used in LLVM IR.
330 virtual llvm::SyncScope::ID getLLVMSyncScopeID(const LangOptions &LangOpts,
331 SyncScope Scope,
332 llvm::AtomicOrdering Ordering,
333 llvm::LLVMContext &Ctx) const;
334
335 /// Interface class for filling custom fields of a block literal for OpenCL.
336 class TargetOpenCLBlockHelper {
337 public:
338 typedef std::pair<llvm::Value *, StringRef> ValueTy;
339 TargetOpenCLBlockHelper() {}
340 virtual ~TargetOpenCLBlockHelper() {}
341 /// Get the custom field types for OpenCL blocks.
342 virtual llvm::SmallVector<llvm::Type *, 1> getCustomFieldTypes() = 0;
343 /// Get the custom field values for OpenCL blocks.
344 virtual llvm::SmallVector<ValueTy, 1>
345 getCustomFieldValues(CodeGenFunction &CGF, const CGBlockInfo &Info) = 0;
346 virtual bool areAllCustomFieldValuesConstant(const CGBlockInfo &Info) = 0;
347 /// Get the custom field values for OpenCL blocks if all values are LLVM
348 /// constants.
349 virtual llvm::SmallVector<llvm::Constant *, 1>
350 getCustomFieldValues(CodeGenModule &CGM, const CGBlockInfo &Info) = 0;
351 };
352 virtual TargetOpenCLBlockHelper *getTargetOpenCLBlockHelper() const {
353 return nullptr;
354 }
355
356 /// Create an OpenCL kernel for an enqueued block. The kernel function is
357 /// a wrapper for the block invoke function with target-specific calling
358 /// convention and ABI as an OpenCL kernel. The wrapper function accepts
359 /// block context and block arguments in target-specific way and calls
360 /// the original block invoke function.
361 virtual llvm::Value *
362 createEnqueuedBlockKernel(CodeGenFunction &CGF,
363 llvm::Function *BlockInvokeFunc,
364 llvm::Type *BlockTy) const;
365
366 /// \return true if the target supports alias from the unmangled name to the
367 /// mangled name of functions declared within an extern "C" region and marked
368 /// as 'used', and having internal linkage.
369 virtual bool shouldEmitStaticExternCAliases() const { return true; }
370
371 /// \return true if annonymous zero-sized bitfields should be emitted to
372 /// correctly distinguish between struct types whose memory layout is the
373 /// same, but whose layout may differ when used as argument passed by value
374 virtual bool shouldEmitDWARFBitFieldSeparators() const { return false; }
375
376 virtual void setCUDAKernelCallingConvention(const FunctionType *&FT) const {}
377
378 /// Return the device-side type for the CUDA device builtin surface type.
379 virtual llvm::Type *getCUDADeviceBuiltinSurfaceDeviceType() const {
380 // By default, no change from the original one.
381 return nullptr;
382 }
383 /// Return the device-side type for the CUDA device builtin texture type.
384 virtual llvm::Type *getCUDADeviceBuiltinTextureDeviceType() const {
385 // By default, no change from the original one.
386 return nullptr;
387 }
388
389 /// Return the WebAssembly externref reference type.
390 virtual llvm::Type *getWasmExternrefReferenceType() const { return nullptr; }
391
392 /// Return the WebAssembly funcref reference type.
393 virtual llvm::Type *getWasmFuncrefReferenceType() const { return nullptr; }
394
395 /// Emit the device-side copy of the builtin surface type.
396 virtual bool emitCUDADeviceBuiltinSurfaceDeviceCopy(CodeGenFunction &CGF,
397 LValue Dst,
398 LValue Src) const {
399 // DO NOTHING by default.
400 return false;
401 }
402 /// Emit the device-side copy of the builtin texture type.
403 virtual bool emitCUDADeviceBuiltinTextureDeviceCopy(CodeGenFunction &CGF,
404 LValue Dst,
405 LValue Src) const {
406 // DO NOTHING by default.
407 return false;
408 }
409
410 /// Return an LLVM type that corresponds to an OpenCL type.
411 virtual llvm::Type *getOpenCLType(CodeGenModule &CGM, const Type *T) const {
412 return nullptr;
413 }
414
415protected:
416 static std::string qualifyWindowsLibrary(StringRef Lib);
417
418 void addStackProbeTargetAttributes(const Decl *D, llvm::GlobalValue *GV,
419 CodeGen::CodeGenModule &CGM) const;
420};
421
422std::unique_ptr<TargetCodeGenInfo>
423createDefaultTargetCodeGenInfo(CodeGenModule &CGM);
424
425enum class AArch64ABIKind {
426 AAPCS = 0,
427 DarwinPCS,
428 Win64,
429 AAPCSSoft,
430};
431
432std::unique_ptr<TargetCodeGenInfo>
433createAArch64TargetCodeGenInfo(CodeGenModule &CGM, AArch64ABIKind Kind);
434
435std::unique_ptr<TargetCodeGenInfo>
436createWindowsAArch64TargetCodeGenInfo(CodeGenModule &CGM, AArch64ABIKind K);
437
438std::unique_ptr<TargetCodeGenInfo>
439createAMDGPUTargetCodeGenInfo(CodeGenModule &CGM);
440
441std::unique_ptr<TargetCodeGenInfo>
442createARCTargetCodeGenInfo(CodeGenModule &CGM);
443
444enum class ARMABIKind {
445 APCS = 0,
446 AAPCS = 1,
447 AAPCS_VFP = 2,
448 AAPCS16_VFP = 3,
449};
450
451std::unique_ptr<TargetCodeGenInfo>
452createARMTargetCodeGenInfo(CodeGenModule &CGM, ARMABIKind Kind);
453
454std::unique_ptr<TargetCodeGenInfo>
455createWindowsARMTargetCodeGenInfo(CodeGenModule &CGM, ARMABIKind K);
456
457std::unique_ptr<TargetCodeGenInfo>
458createAVRTargetCodeGenInfo(CodeGenModule &CGM, unsigned NPR, unsigned NRR);
459
460std::unique_ptr<TargetCodeGenInfo>
461createBPFTargetCodeGenInfo(CodeGenModule &CGM);
462
463std::unique_ptr<TargetCodeGenInfo>
464createCSKYTargetCodeGenInfo(CodeGenModule &CGM, unsigned FLen);
465
466std::unique_ptr<TargetCodeGenInfo>
467createHexagonTargetCodeGenInfo(CodeGenModule &CGM);
468
469std::unique_ptr<TargetCodeGenInfo>
470createLanaiTargetCodeGenInfo(CodeGenModule &CGM);
471
472std::unique_ptr<TargetCodeGenInfo>
473createLoongArchTargetCodeGenInfo(CodeGenModule &CGM, unsigned GRLen,
474 unsigned FLen);
475
476std::unique_ptr<TargetCodeGenInfo>
477createM68kTargetCodeGenInfo(CodeGenModule &CGM);
478
479std::unique_ptr<TargetCodeGenInfo>
480createMIPSTargetCodeGenInfo(CodeGenModule &CGM, bool IsOS32);
481
482std::unique_ptr<TargetCodeGenInfo>
483createMSP430TargetCodeGenInfo(CodeGenModule &CGM);
484
485std::unique_ptr<TargetCodeGenInfo>
486createNVPTXTargetCodeGenInfo(CodeGenModule &CGM);
487
488std::unique_ptr<TargetCodeGenInfo>
489createPNaClTargetCodeGenInfo(CodeGenModule &CGM);
490
491enum class PPC64_SVR4_ABIKind {
492 ELFv1 = 0,
493 ELFv2,
494};
495
496std::unique_ptr<TargetCodeGenInfo>
497createAIXTargetCodeGenInfo(CodeGenModule &CGM, bool Is64Bit);
498
499std::unique_ptr<TargetCodeGenInfo>
500createPPC32TargetCodeGenInfo(CodeGenModule &CGM, bool SoftFloatABI);
501
502std::unique_ptr<TargetCodeGenInfo>
503createPPC64TargetCodeGenInfo(CodeGenModule &CGM);
504
505std::unique_ptr<TargetCodeGenInfo>
506createPPC64_SVR4_TargetCodeGenInfo(CodeGenModule &CGM, PPC64_SVR4_ABIKind Kind,
507 bool SoftFloatABI);
508
509std::unique_ptr<TargetCodeGenInfo>
510createRISCVTargetCodeGenInfo(CodeGenModule &CGM, unsigned XLen, unsigned FLen,
511 bool EABI);
512
513std::unique_ptr<TargetCodeGenInfo>
514createCommonSPIRTargetCodeGenInfo(CodeGenModule &CGM);
515
516std::unique_ptr<TargetCodeGenInfo>
517createSPIRVTargetCodeGenInfo(CodeGenModule &CGM);
518
519std::unique_ptr<TargetCodeGenInfo>
520createSparcV8TargetCodeGenInfo(CodeGenModule &CGM);
521
522std::unique_ptr<TargetCodeGenInfo>
523createSparcV9TargetCodeGenInfo(CodeGenModule &CGM);
524
525std::unique_ptr<TargetCodeGenInfo>
526createSystemZTargetCodeGenInfo(CodeGenModule &CGM, bool HasVector,
527 bool SoftFloatABI);
528
529std::unique_ptr<TargetCodeGenInfo>
530createTCETargetCodeGenInfo(CodeGenModule &CGM);
531
532std::unique_ptr<TargetCodeGenInfo>
533createVETargetCodeGenInfo(CodeGenModule &CGM);
534
535enum class WebAssemblyABIKind {
536 MVP = 0,
537 ExperimentalMV = 1,
538};
539
540std::unique_ptr<TargetCodeGenInfo>
541createWebAssemblyTargetCodeGenInfo(CodeGenModule &CGM, WebAssemblyABIKind K);
542
543/// The AVX ABI level for X86 targets.
544enum class X86AVXABILevel {
545 None,
546 AVX,
547 AVX512,
548};
549
550std::unique_ptr<TargetCodeGenInfo> createX86_32TargetCodeGenInfo(
551 CodeGenModule &CGM, bool DarwinVectorABI, bool Win32StructABI,
552 unsigned NumRegisterParameters, bool SoftFloatABI);
553
554std::unique_ptr<TargetCodeGenInfo>
555createWinX86_32TargetCodeGenInfo(CodeGenModule &CGM, bool DarwinVectorABI,
556 bool Win32StructABI,
557 unsigned NumRegisterParameters);
558
559std::unique_ptr<TargetCodeGenInfo>
560createX86_64TargetCodeGenInfo(CodeGenModule &CGM, X86AVXABILevel AVXLevel);
561
562std::unique_ptr<TargetCodeGenInfo>
563createWinX86_64TargetCodeGenInfo(CodeGenModule &CGM, X86AVXABILevel AVXLevel);
564
565std::unique_ptr<TargetCodeGenInfo>
566createXCoreTargetCodeGenInfo(CodeGenModule &CGM);
567
568} // namespace CodeGen
569} // namespace clang
570
571#endif // LLVM_CLANG_LIB_CODEGEN_TARGETINFO_H
572

source code of clang/lib/CodeGen/TargetInfo.h