10#include "TargetInfo.h"
21 SlotSize, SlotSize,
true);
29 2 * SlotSize - EltSize);
44 llvm::Value *
Address,
bool Is64Bit,
51 llvm::IntegerType *i8 = CGF.
Int8Ty;
52 llvm::Value *Four8 = llvm::ConstantInt::get(i8, 4);
53 llvm::Value *Eight8 = llvm::ConstantInt::get(i8, 8);
54 llvm::Value *Sixteen8 = llvm::ConstantInt::get(i8, 16);
107class AIXABIInfo :
public ABIInfo {
109 const unsigned PtrByteSize;
114 :
ABIInfo(CGT), Is64Bit(Is64Bit), PtrByteSize(Is64Bit ? 8 : 4) {}
116 bool isPromotableTypeForABI(
QualType Ty)
const;
145 llvm::Value *
Address)
const override;
154bool AIXABIInfo::isPromotableTypeForABI(
QualType Ty)
const {
157 Ty = EnumTy->getDecl()->getIntegerType();
160 if (getContext().isPromotableIntegerType(Ty))
170 switch (BT->getKind()) {
171 case BuiltinType::Int:
172 case BuiltinType::UInt:
192 return getNaturalAlignIndirect(RetTy);
213 CharUnits CCAlign = getParamTypeAlignment(Ty);
214 CharUnits TyAlign = getContext().getTypeAlignInChars(Ty);
220 return (isPromotableTypeForABI(Ty)
228 Ty = CTy->getElementType();
243 auto TypeInfo = getContext().getTypeInfoInChars(Ty);
257 if (EltSize < SlotSize)
262 SlotSize,
true, Slot);
265bool AIXTargetCodeGenInfo::initDwarfEHRegSizeTable(
270void AIXTargetCodeGenInfo::setTargetAttributes(
272 if (!isa<llvm::GlobalVariable>(GV))
275 auto *GVar = cast<llvm::GlobalVariable>(GV);
276 auto GVId = GV->getName();
279 bool UserSpecifiedTOC =
283 if (UserSpecifiedTOC ||
286 const unsigned long PointerSize =
287 GV->getParent()->getDataLayout().getPointerSizeInBits() / 8;
288 auto *VarD = dyn_cast<VarDecl>(
D);
289 assert(VarD &&
"Invalid declaration of global variable.");
293 const auto *Ty = VarD->getType().getTypePtr();
297 bool EmitDiagnostic = UserSpecifiedTOC && GV->hasExternalLinkage();
298 auto reportUnsupportedWarning = [&](
bool ShouldEmitWarning, StringRef Msg) {
299 if (ShouldEmitWarning)
304 reportUnsupportedWarning(EmitDiagnostic,
"of incomplete type");
306 reportUnsupportedWarning(EmitDiagnostic,
307 "it contains a flexible array member");
309 reportUnsupportedWarning(EmitDiagnostic,
"of thread local storage");
311 reportUnsupportedWarning(EmitDiagnostic,
312 "variable is larger than a pointer");
313 else if (PointerSize < Alignment)
314 reportUnsupportedWarning(EmitDiagnostic,
315 "variable is aligned wider than a pointer");
317 reportUnsupportedWarning(EmitDiagnostic,
318 "variable has a section attribute");
319 else if (GV->hasExternalLinkage() ||
321 GVar->addAttribute(
"toc-data");
330 bool IsRetSmallStructInRegABI;
336 bool RetSmallStructInRegABI)
338 IsRetSmallStructInRegABI(RetSmallStructInRegABI) {}
355 PPC32TargetCodeGenInfo(
CodeGenTypes &CGT,
bool SoftFloatABI,
356 bool RetSmallStructInRegABI)
358 CGT, SoftFloatABI, RetSmallStructInRegABI)) {}
360 static bool isStructReturnInRegABI(
const llvm::Triple &Triple,
369 llvm::Value *
Address)
const override;
376 Ty = CTy->getElementType();
384 const Type *AlignTy =
nullptr;
387 if ((EltType->isVectorType() && getContext().getTypeSize(EltType) == 128) ||
402 (Size = getContext().getTypeSize(RetTy)) <= 64) {
417 llvm::Type *CoerceTy = llvm::Type::getIntNTy(getVMContext(), Size);
429 if (getTarget().getTriple().isOSDarwin()) {
430 auto TI = getContext().getTypeInfoInChars(Ty);
431 TI.Align = getParamTypeAlignment(Ty);
439 const unsigned OverflowLimit = 8;
454 bool isI64 = Ty->
isIntegerType() && getContext().getTypeSize(Ty) == 64;
456 bool isF64 = Ty->
isFloatingType() && getContext().getTypeSize(Ty) == 64;
466 if (isInt || IsSoftFloatABI) {
467 NumRegsAddr = Builder.CreateStructGEP(VAList, 0,
"gpr");
469 NumRegsAddr = Builder.CreateStructGEP(VAList, 1,
"fpr");
472 llvm::Value *NumRegs = Builder.CreateLoad(NumRegsAddr,
"numUsedRegs");
475 if (isI64 || (isF64 && IsSoftFloatABI)) {
476 NumRegs = Builder.CreateAdd(NumRegs, Builder.getInt8(1));
477 NumRegs = Builder.CreateAnd(NumRegs, Builder.getInt8((uint8_t) ~1U));
481 Builder.CreateICmpULT(NumRegs, Builder.getInt8(OverflowLimit),
"cond");
487 Builder.CreateCondBr(CC, UsingRegs, UsingOverflow);
489 llvm::Type *DirectTy = CGF.
ConvertType(Ty), *ElementTy = DirectTy;
498 Address RegSaveAreaPtr = Builder.CreateStructGEP(VAList, 4);
499 RegAddr =
Address(Builder.CreateLoad(RegSaveAreaPtr), CGF.
Int8Ty,
504 if (!(isInt || IsSoftFloatABI)) {
505 RegAddr = Builder.CreateConstInBoundsByteGEP(RegAddr,
512 llvm::Value *RegOffset =
513 Builder.CreateMul(NumRegs, Builder.getInt8(RegSize.
getQuantity()));
514 RegAddr =
Address(Builder.CreateInBoundsGEP(
521 Builder.CreateAdd(NumRegs,
522 Builder.getInt8((isI64 || (isF64 && IsSoftFloatABI)) ? 2 : 1));
523 Builder.CreateStore(NumRegs, NumRegsAddr);
533 Builder.CreateStore(Builder.getInt8(OverflowLimit), NumRegsAddr);
546 Address OverflowAreaAddr = Builder.CreateStructGEP(VAList, 3);
548 Address(Builder.CreateLoad(OverflowAreaAddr,
"argp.cur"), CGF.
Int8Ty,
552 if (Align > OverflowAreaAlign) {
561 OverflowArea = Builder.CreateConstInBoundsByteGEP(OverflowArea, Size);
562 Builder.CreateStore(OverflowArea.
emitRawPointer(CGF), OverflowAreaAddr);
574 Result =
Address(Builder.CreateLoad(Result,
"aggr"), ElementTy,
575 getContext().getTypeAlignInChars(Ty));
581bool PPC32TargetCodeGenInfo::isStructReturnInRegABI(
583 assert(Triple.isPPC32());
585 switch (Opts.getStructReturnConvention()) {
594 if (Triple.isOSBinFormatELF() && !Triple.isOSLinux())
612class PPC64_SVR4_ABIInfo :
public ABIInfo {
613 static const unsigned GPRBits = 64;
622 bool isPromotableTypeForABI(
QualType Ty)
const;
630 uint64_t Members)
const override;
669 std::make_unique<PPC64_SVR4_ABIInfo>(CGT,
Kind, SoftFloatABI)) {
671 std::make_unique<SwiftABIInfo>(CGT,
false);
680 llvm::Value *
Address)
const override;
682 const llvm::MapVector<GlobalDecl, StringRef>
683 &MangledDeclNames)
const override;
697 llvm::Value *
Address)
const override;
704PPC64_SVR4_ABIInfo::isPromotableTypeForABI(
QualType Ty)
const {
707 Ty = EnumTy->getDecl()->getIntegerType();
710 if (isPromotableIntegerTypeForABI(Ty))
717 case BuiltinType::Int:
718 case BuiltinType::UInt:
725 if (EIT->getNumBits() < 64)
736 Ty = CTy->getElementType();
738 auto FloatUsesVector = [
this](
QualType Ty){
740 Ty) == &llvm::APFloat::IEEEquad();
747 }
else if (FloatUsesVector(Ty)) {
756 const Type *AlignAsType =
nullptr;
760 if ((EltType->
isVectorType() && getContext().getTypeSize(EltType) == 128) ||
762 AlignAsType = EltType;
768 if (!AlignAsType && Kind == PPC64_SVR4_ABIKind::ELFv2 &&
775 FloatUsesVector(
QualType(AlignAsType, 0));
788bool PPC64_SVR4_ABIInfo::isHomogeneousAggregateBaseType(
QualType Ty)
const {
792 if (BT->
getKind() == BuiltinType::Float ||
793 BT->
getKind() == BuiltinType::Double ||
794 BT->
getKind() == BuiltinType::LongDouble ||
795 BT->
getKind() == BuiltinType::Ibm128 ||
796 (getContext().getTargetInfo().hasFloat128Type() &&
797 (BT->
getKind() == BuiltinType::Float128))) {
804 if (getContext().getTypeSize(VT) == 128)
810bool PPC64_SVR4_ABIInfo::isHomogeneousAggregateSmallEnough(
811 const Type *
Base, uint64_t Members)
const {
815 ((getContext().getTargetInfo().hasFloat128Type() &&
816 Base->isFloat128Type()) ||
817 Base->isVectorType()) ? 1
818 : (getContext().getTypeSize(
Base) + 63) / 64;
821 return Members * NumRegs <= 8;
825PPC64_SVR4_ABIInfo::classifyArgumentType(
QualType Ty)
const {
836 return getNaturalAlignIndirect(Ty,
false);
837 else if (Size < 128) {
838 llvm::Type *CoerceTy = llvm::IntegerType::get(getVMContext(), Size);
844 if (EIT->getNumBits() > 128)
845 return getNaturalAlignIndirect(Ty,
true);
851 uint64_t ABIAlign = getParamTypeAlignment(Ty).getQuantity();
857 if (Kind == PPC64_SVR4_ABIKind::ELFv2 &&
858 isHomogeneousAggregate(Ty,
Base, Members)) {
859 llvm::Type *BaseTy = CGT.ConvertType(
QualType(
Base, 0));
860 llvm::Type *CoerceTy = llvm::ArrayType::get(BaseTy, Members);
868 uint64_t Bits = getContext().getTypeSize(Ty);
869 if (Bits > 0 && Bits <= 8 * GPRBits) {
870 llvm::Type *CoerceTy;
876 llvm::IntegerType::get(getVMContext(), llvm::alignTo(Bits, 8));
881 uint64_t NumRegs = llvm::alignTo(Bits, RegBits) / RegBits;
882 llvm::Type *RegTy = llvm::IntegerType::get(getVMContext(), RegBits);
883 CoerceTy = llvm::ArrayType::get(RegTy, NumRegs);
895 return (isPromotableTypeForABI(Ty)
901PPC64_SVR4_ABIInfo::classifyReturnType(
QualType RetTy)
const {
913 return getNaturalAlignIndirect(RetTy);
914 else if (Size < 128) {
915 llvm::Type *CoerceTy = llvm::IntegerType::get(getVMContext(), Size);
921 if (EIT->getNumBits() > 128)
922 return getNaturalAlignIndirect(RetTy,
false);
928 if (Kind == PPC64_SVR4_ABIKind::ELFv2 &&
929 isHomogeneousAggregate(RetTy,
Base, Members)) {
930 llvm::Type *BaseTy = CGT.ConvertType(
QualType(
Base, 0));
931 llvm::Type *CoerceTy = llvm::ArrayType::get(BaseTy, Members);
936 uint64_t Bits = getContext().getTypeSize(RetTy);
937 if (Kind == PPC64_SVR4_ABIKind::ELFv2 && Bits <= 2 * GPRBits) {
941 llvm::Type *CoerceTy;
942 if (Bits > GPRBits) {
943 CoerceTy = llvm::IntegerType::get(getVMContext(), GPRBits);
944 CoerceTy = llvm::StructType::get(CoerceTy, CoerceTy);
947 llvm::IntegerType::get(getVMContext(), llvm::alignTo(Bits, 8));
952 return getNaturalAlignIndirect(RetTy);
962 auto TypeInfo = getContext().getTypeInfoInChars(Ty);
975 if (EltSize < SlotSize)
993 SlotSize,
true, Slot,
998PPC64_SVR4_TargetCodeGenInfo::initDwarfEHRegSizeTable(
1005void PPC64_SVR4_TargetCodeGenInfo::emitTargetMetadata(
1007 const llvm::MapVector<GlobalDecl, StringRef> &MangledDeclNames)
const {
1011 if (flt == &llvm::APFloat::PPCDoubleDouble())
1012 CGM.
getModule().addModuleFlag(llvm::Module::Error,
"float-abi",
1013 llvm::MDString::get(Ctx,
"doubledouble"));
1014 else if (flt == &llvm::APFloat::IEEEquad())
1015 CGM.
getModule().addModuleFlag(llvm::Module::Error,
"float-abi",
1016 llvm::MDString::get(Ctx,
"ieeequad"));
1017 else if (flt == &llvm::APFloat::IEEEdouble())
1018 CGM.
getModule().addModuleFlag(llvm::Module::Error,
"float-abi",
1019 llvm::MDString::get(Ctx,
"ieeedouble"));
1030std::unique_ptr<TargetCodeGenInfo>
1032 return std::make_unique<AIXTargetCodeGenInfo>(CGM.
getTypes(), Is64Bit);
1035std::unique_ptr<TargetCodeGenInfo>
1037 bool RetSmallStructInRegABI = PPC32TargetCodeGenInfo::isStructReturnInRegABI(
1039 return std::make_unique<PPC32TargetCodeGenInfo>(CGM.
getTypes(), SoftFloatABI,
1040 RetSmallStructInRegABI);
1043std::unique_ptr<TargetCodeGenInfo>
1045 return std::make_unique<PPC64TargetCodeGenInfo>(CGM.
getTypes());
1050 return std::make_unique<PPC64_SVR4_TargetCodeGenInfo>(CGM.
getTypes(), Kind,
static RValue complexTempStructure(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, CharUnits SlotSize, CharUnits EltSize, const ComplexType *CTy)
static bool PPC_initDwarfEHRegSizeTable(CodeGen::CodeGenFunction &CGF, llvm::Value *Address, bool Is64Bit, bool IsAIX)
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
CharUnits getTypeAlignInChars(QualType T) const
Return the ABI-specified alignment of a (complete) type T, in characters.
TypeInfo getTypeInfo(const Type *T) const
Get the size and alignment of the specified complete type in bits.
TypeInfoChars getTypeInfoInChars(const Type *T) const
CharUnits getDeclAlign(const Decl *D, bool ForAlignof=false) const
Return a conservative estimate of the alignment of the specified decl D.
int64_t toBits(CharUnits CharSize) const
Convert a size in characters to a size in bits.
A fixed int type of a specified bitwidth.
This class is used for builtin types like 'int'.
bool isFloatingPoint() const
CharUnits - This is an opaque type for sizes expressed in character units.
QuantityType getQuantity() const
getQuantity - Get the raw integer representation of this quantity.
CharUnits alignmentOfArrayElement(CharUnits elementSize) const
Given that this is the alignment of the first element of an array, return the minimum alignment of an...
static CharUnits fromQuantity(QuantityType Quantity)
fromQuantity - Construct a CharUnits quantity from a raw integer type.
CodeGenOptions - Track various options which control how the code is optimized and passed to the back...
std::vector< std::string > TocDataVarsUserSpecified
List of global variables explicitly specified by the user as toc-data.
std::vector< std::string > NoTocDataVars
List of global variables that over-ride the toc-data default.
ABIArgInfo - Helper class to encapsulate information about how a specific C type should be passed to ...
static ABIArgInfo getIgnore()
static ABIArgInfo getIndirect(CharUnits Alignment, bool ByVal=true, bool Realign=false, llvm::Type *Padding=nullptr)
static ABIArgInfo getDirect(llvm::Type *T=nullptr, unsigned Offset=0, llvm::Type *Padding=nullptr, bool CanBeFlattened=true, unsigned Align=0)
static ABIArgInfo getExtend(QualType Ty, llvm::Type *T=nullptr)
static ABIArgInfo getDirectInReg(llvm::Type *T=nullptr)
ABIInfo - Target specific hooks for defining how a type should be passed or returned from functions.
CodeGen::CGCXXABI & getCXXABI() const
virtual bool isHomogeneousAggregateBaseType(QualType Ty) const
virtual bool isHomogeneousAggregateSmallEnough(const Type *Base, uint64_t Members) const
virtual RValue EmitVAArg(CodeGen::CodeGenFunction &CGF, CodeGen::Address VAListAddr, QualType Ty, AggValueSlot Slot) const =0
EmitVAArg - Emit the target dependent code to load a value of.
virtual void computeInfo(CodeGen::CGFunctionInfo &FI) const =0
Like RawAddress, an abstract representation of an aligned address, but the pointer contained in this ...
llvm::Value * emitRawPointer(CodeGenFunction &CGF) const
Return the pointer contained in this class after authenticating it and adding offset to it if necessa...
CharUnits getAlignment() const
llvm::Type * getElementType() const
Return the type of the values stored in this address.
Address withElementType(llvm::Type *ElemTy) const
Return address with different element type, but same pointer and alignment.
Address CreateConstInBoundsByteGEP(Address Addr, CharUnits Offset, const llvm::Twine &Name="")
Given a pointer to i8, adjust it by a given constant offset.
llvm::LoadInst * CreateLoad(Address Addr, const llvm::Twine &Name="")
RecordArgABI
Specify how one should pass an argument of a record type.
@ RAA_DirectInMemory
Pass it on the stack using its defined layout.
CGFunctionInfo - Class to encapsulate the information about a function definition.
ABIArgInfo & getReturnInfo()
CanQualType getReturnType() const
MutableArrayRef< ArgInfo > arguments()
CodeGenFunction - This class organizes the per-function state that is used while generating LLVM code...
llvm::BasicBlock * createBasicBlock(const Twine &name="", llvm::Function *parent=nullptr, llvm::BasicBlock *before=nullptr)
createBasicBlock - Create an LLVM basic block.
void EmitBlock(llvm::BasicBlock *BB, bool IsFinished=false)
EmitBlock - Emit the given block.
llvm::Type * ConvertTypeForMem(QualType T)
void EmitBranch(llvm::BasicBlock *Block)
EmitBranch - Emit a branch to the specified basic block from the current insert block,...
ASTContext & getContext() const
llvm::Type * ConvertType(QualType T)
LValue MakeAddrLValue(Address Addr, QualType T, AlignmentSource Source=AlignmentSource::Type)
RValue EmitLoadOfAnyValue(LValue V, AggValueSlot Slot=AggValueSlot::ignored(), SourceLocation Loc={})
Like EmitLoadOfLValue but also handles complex and aggregate types.
This class organizes the cross-function state that is used while generating LLVM code.
llvm::Module & getModule() const
DiagnosticsEngine & getDiags() const
CodeGenTypes & getTypes()
const TargetInfo & getTarget() const
const llvm::DataLayout & getDataLayout() const
const llvm::Triple & getTriple() const
const CodeGenOptions & getCodeGenOpts() const
llvm::LLVMContext & getLLVMContext()
This class organizes the cross-module state that is used while lowering AST types to LLVM types.
bool isLongDoubleReferenced() const
DefaultABIInfo - The default implementation for ABI specific details.
ABIArgInfo classifyArgumentType(QualType RetTy) const
RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty, AggValueSlot Slot) const override
EmitVAArg - Emit the target dependent code to load a value of.
ABIArgInfo classifyReturnType(QualType RetTy) const
void computeInfo(CGFunctionInfo &FI) const override
RValue - This trivial value class is used to represent the result of an expression that is evaluated.
static RValue getAggregate(Address addr, bool isVolatile=false)
Convert an Address to an RValue.
static RValue getComplex(llvm::Value *V1, llvm::Value *V2)
TargetCodeGenInfo - This class organizes various target-specific codegeneration issues,...
virtual bool initDwarfEHRegSizeTable(CodeGen::CodeGenFunction &CGF, llvm::Value *Address) const
Initializes the given DWARF EH register-size table, a char*.
virtual void setTargetAttributes(const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule &M) const
setTargetAttributes - Provides a convenient hook to handle extra target-specific attributes for the g...
virtual int getDwarfEHStackPointer(CodeGen::CodeGenModule &M) const
Determines the DWARF register number for the stack pointer, for exception-handling purposes.
virtual void emitTargetMetadata(CodeGen::CodeGenModule &CGM, const llvm::MapVector< GlobalDecl, StringRef > &MangledDeclNames) const
emitTargetMetadata - Provides a convenient hook to handle extra target-specific metadata for the give...
Complex values, per C99 6.2.5p11.
QualType getElementType() const
Decl - This represents one declaration (or definition), e.g.
ASTContext & getASTContext() const LLVM_READONLY
SourceLocation getLocation() const
DiagnosticBuilder Report(SourceLocation Loc, unsigned DiagID)
Issue the message to the client.
A helper class that allows the use of isa/cast/dyncast to detect TagType objects of enums.
A (possibly-)qualified type.
Represents a struct/union/class.
bool hasFlexibleArrayMember() const
A helper class that allows the use of isa/cast/dyncast to detect TagType objects of structs/unions/cl...
const llvm::fltSemantics & getLongDoubleFormat() const
The base class of the type hierarchy.
bool isIntegerType() const
isIntegerType() does not include complex integers (a GCC extension).
bool isAnyComplexType() const
bool isIncompleteType(NamedDecl **Def=nullptr) const
Types are partitioned into 3 broad categories (C99 6.2.5p1): object types, function types,...
bool isVectorType() const
bool isRealFloatingType() const
Floating point categories.
bool isFloatingType() const
const T * getAs() const
Member-template getAs<specific type>'.
bool isRecordType() const
@ TLS_None
Not a TLS variable.
Represents a GCC generic vector type.
ABIArgInfo classifyArgumentType(CodeGenModule &CGM, CanQualType type)
Classify the rules for how to pass a particular type.
CGCXXABI::RecordArgABI getRecordArgABI(const RecordType *RT, CGCXXABI &CXXABI)
bool classifyReturnType(const CGCXXABI &CXXABI, CGFunctionInfo &FI, const ABIInfo &Info)
std::unique_ptr< TargetCodeGenInfo > createPPC64_SVR4_TargetCodeGenInfo(CodeGenModule &CGM, PPC64_SVR4_ABIKind Kind, bool SoftFloatABI)
Address emitVoidPtrDirectVAArg(CodeGenFunction &CGF, Address VAListAddr, llvm::Type *DirectTy, CharUnits DirectSize, CharUnits DirectAlign, CharUnits SlotSize, bool AllowHigherAlign, bool ForceRightAdjust=false)
Emit va_arg for a platform using the common void* representation, where arguments are simply emitted ...
std::unique_ptr< TargetCodeGenInfo > createAIXTargetCodeGenInfo(CodeGenModule &CGM, bool Is64Bit)
bool isRecordWithSIMDVectorType(ASTContext &Context, QualType Ty)
RValue emitVoidPtrVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType ValueTy, bool IsIndirect, TypeInfoChars ValueInfo, CharUnits SlotSizeAndAlign, bool AllowHigherAlign, AggValueSlot Slot, bool ForceRightAdjust=false)
Emit va_arg for a platform using the common void* representation, where arguments are simply emitted ...
Address emitMergePHI(CodeGenFunction &CGF, Address Addr1, llvm::BasicBlock *Block1, Address Addr2, llvm::BasicBlock *Block2, const llvm::Twine &Name="")
llvm::Value * emitRoundPointerUpToAlignment(CodeGenFunction &CGF, llvm::Value *Ptr, CharUnits Align)
bool isAggregateTypeForABI(QualType T)
const Type * isSingleElementStruct(QualType T, ASTContext &Context)
isSingleElementStruct - Determine if a structure is a "single element struct", i.e.
void AssignToArrayRange(CodeGen::CGBuilderTy &Builder, llvm::Value *Array, llvm::Value *Value, unsigned FirstIndex, unsigned LastIndex)
QualType useFirstFieldIfTransparentUnion(QualType Ty)
Pass transparent unions as if they were the type of the first element.
std::unique_ptr< TargetCodeGenInfo > createPPC32TargetCodeGenInfo(CodeGenModule &CGM, bool SoftFloatABI)
std::unique_ptr< TargetCodeGenInfo > createPPC64TargetCodeGenInfo(CodeGenModule &CGM)
The JSON file list parser is used to communicate input to InstallAPI.
const FunctionProtoType * T
llvm::IntegerType * Int8Ty
i8, i16, i32, and i64
CharUnits getPointerSize() const
llvm::PointerType * UnqualPtrTy