Lines Matching refs:CGT

201   return CGT.getCXXABI();  in getCXXABI()
205 return CGT.getContext(); in getContext()
209 return CGT.getLLVMContext(); in getVMContext()
213 return CGT.getDataLayout(); in getDataLayout()
217 return CGT.getTarget(); in getTarget()
221 return CGT.getCodeGenOpts(); in getCodeGenOpts()
692 DefaultABIInfo(CodeGen::CodeGenTypes &CGT) : ABIInfo(CGT) {} in DefaultABIInfo() argument
712 DefaultTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT) in DefaultTargetCodeGenInfo() argument
713 : TargetCodeGenInfo(std::make_unique<DefaultABIInfo>(CGT)) {} in DefaultTargetCodeGenInfo()
784 explicit WebAssemblyABIInfo(CodeGen::CodeGenTypes &CGT, ABIKind Kind) in WebAssemblyABIInfo() argument
785 : SwiftABIInfo(CGT), defaultInfo(CGT), Kind(Kind) {} in WebAssemblyABIInfo()
806 return occupiesMoreThan(CGT, scalars, /*total*/ 4); in shouldPassIndirectlyForSwift()
816 explicit WebAssemblyTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, in WebAssemblyTargetCodeGenInfo() argument
818 : TargetCodeGenInfo(std::make_unique<WebAssemblyABIInfo>(CGT, K)) {} in WebAssemblyTargetCodeGenInfo()
868 return ABIArgInfo::getDirect(CGT.ConvertType(QualType(SeltTy, 0))); in classifyArgumentType()
901 return ABIArgInfo::getDirect(CGT.ConvertType(QualType(SeltTy, 0))); in classifyReturnType()
932 PNaClABIInfo(CodeGen::CodeGenTypes &CGT) : ABIInfo(CGT) {} in PNaClABIInfo() argument
944 PNaClTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT) in PNaClTargetCodeGenInfo() argument
945 : TargetCodeGenInfo(std::make_unique<PNaClABIInfo>(CGT)) {} in PNaClTargetCodeGenInfo()
1168 X86_32ABIInfo(CodeGen::CodeGenTypes &CGT, bool DarwinVectorABI, in X86_32ABIInfo() argument
1171 : SwiftABIInfo(CGT), IsDarwinVectorABI(DarwinVectorABI), in X86_32ABIInfo()
1175 IsMCUABI(CGT.getTarget().getTriple().isOSIAMCU()), in X86_32ABIInfo()
1184 return occupiesMoreThan(CGT, scalars, /*total*/ 3); in shouldPassIndirectlyForSwift()
1195 X86_32TargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, bool DarwinVectorABI, in X86_32TargetCodeGenInfo() argument
1199 CGT, DarwinVectorABI, RetSmallStructInRegABI, Win32StructABI, in X86_32TargetCodeGenInfo()
1542 return ABIArgInfo::getDirect(CGT.ConvertType(QualType(SeltTy, 0))); in classifyReturnType()
1866 if (IsX86_MMXType(CGT.ConvertType(Ty))) in classifyArgumentType()
1974 llvm::Type *LLTy = CGT.ConvertTypeForMem(Type); in addFieldToArgStruct()
2320 X86_64ABIInfo(CodeGen::CodeGenTypes &CGT, X86AVXABILevel AVXLevel) : in X86_64ABIInfo() argument
2321 SwiftABIInfo(CGT), AVXLevel(AVXLevel), in X86_64ABIInfo()
2322 Has64BitPointers(CGT.getDataLayout().getPointerSize(0) == 8) { in X86_64ABIInfo()
2351 return occupiesMoreThan(CGT, scalars, /*total*/ 4); in shouldPassIndirectlyForSwift()
2361 WinX86_64ABIInfo(CodeGen::CodeGenTypes &CGT, X86AVXABILevel AVXLevel) in WinX86_64ABIInfo() argument
2362 : SwiftABIInfo(CGT), AVXLevel(AVXLevel), in WinX86_64ABIInfo()
2383 return occupiesMoreThan(CGT, scalars, /*total*/ 4); in shouldPassIndirectlyForSwift()
2405 X86_64TargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, X86AVXABILevel AVXLevel) in X86_64TargetCodeGenInfo() argument
2406 : TargetCodeGenInfo(std::make_unique<X86_64ABIInfo>(CGT, AVXLevel)) {} in X86_64TargetCodeGenInfo()
2604 WinX86_32TargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, in WinX86_32TargetCodeGenInfo() argument
2607 : X86_32TargetCodeGenInfo(CGT, DarwinVectorABI, RetSmallStructInRegABI, in WinX86_32TargetCodeGenInfo()
2648 WinX86_64TargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, in WinX86_64TargetCodeGenInfo() argument
2650 : TargetCodeGenInfo(std::make_unique<WinX86_64ABIInfo>(CGT, AVXLevel)) {} in WinX86_64TargetCodeGenInfo()
3243 llvm::Type *IRType = CGT.ConvertType(Ty); in GetByteVectorType()
3564 ResType = GetINTEGERTypeAtOffset(CGT.ConvertType(RetTy), 0, RetTy, 0); in classifyReturnType()
3582 ResType = GetSSETypeAtOffset(CGT.ConvertType(RetTy), 0, RetTy, 0); in classifyReturnType()
3614 HighPart = GetINTEGERTypeAtOffset(CGT.ConvertType(RetTy), 8, RetTy, 8); in classifyReturnType()
3619 HighPart = GetSSETypeAtOffset(CGT.ConvertType(RetTy), 8, RetTy, 8); in classifyReturnType()
3642 HighPart = GetSSETypeAtOffset(CGT.ConvertType(RetTy), 8, RetTy, 8); in classifyReturnType()
3709 ResType = GetINTEGERTypeAtOffset(CGT.ConvertType(Ty), 0, Ty, 0); in classifyArgumentType()
3729 llvm::Type *IRType = CGT.ConvertType(Ty); in classifyArgumentType()
3751 HighPart = GetINTEGERTypeAtOffset(CGT.ConvertType(Ty), 8, Ty, 8); in classifyArgumentType()
3761 HighPart = GetSSETypeAtOffset(CGT.ConvertType(Ty), 8, Ty, 8); in classifyArgumentType()
3852 WinX86_64ABIInfo Win64ABIInfo(CGT, AVXLevel); in computeInfo()
4227 llvm::Type *LLTy = CGT.ConvertType(Ty); in classify()
4324 X86_64ABIInfo SysVABIInfo(CGT, AVXLevel); in computeInfo()
4447 AIXABIInfo(CodeGen::CodeGenTypes &CGT, bool Is64Bit) in AIXABIInfo() argument
4448 : ABIInfo(CGT), Is64Bit(Is64Bit), PtrByteSize(Is64Bit ? 8 : 4) {} in AIXABIInfo()
4471 AIXTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, bool Is64Bit) in AIXTargetCodeGenInfo() argument
4472 : TargetCodeGenInfo(std::make_unique<AIXABIInfo>(CGT, Is64Bit)), in AIXTargetCodeGenInfo()
4603 PPC32_SVR4_ABIInfo(CodeGen::CodeGenTypes &CGT, bool SoftFloatABI, in PPC32_SVR4_ABIInfo() argument
4605 : DefaultABIInfo(CGT), IsSoftFloatABI(SoftFloatABI), in PPC32_SVR4_ABIInfo()
4623 PPC32TargetCodeGenInfo(CodeGenTypes &CGT, bool SoftFloatABI, in PPC32TargetCodeGenInfo() argument
4626 CGT, SoftFloatABI, RetSmallStructInRegABI)) {} in PPC32TargetCodeGenInfo()
4891 PPC64_SVR4_ABIInfo(CodeGen::CodeGenTypes &CGT, ABIKind Kind, in PPC64_SVR4_ABIInfo() argument
4893 : SwiftABIInfo(CGT), Kind(Kind), IsSoftFloatABI(SoftFloatABI) {} in PPC64_SVR4_ABIInfo()
4924 I.info = ABIArgInfo::getDirectInReg(CGT.ConvertType(QT)); in computeInfo()
4937 return occupiesMoreThan(CGT, scalars, /*total*/ 4); in shouldPassIndirectlyForSwift()
4948 PPC64_SVR4_TargetCodeGenInfo(CodeGenTypes &CGT, in PPC64_SVR4_TargetCodeGenInfo() argument
4952 std::make_unique<PPC64_SVR4_ABIInfo>(CGT, Kind, SoftFloatABI)) {} in PPC64_SVR4_TargetCodeGenInfo()
4965 PPC64TargetCodeGenInfo(CodeGenTypes &CGT) : DefaultTargetCodeGenInfo(CGT) {} in PPC64TargetCodeGenInfo() argument
5232 llvm::Type *BaseTy = CGT.ConvertType(QualType(Base, 0)); in classifyArgumentType()
5302 llvm::Type *BaseTy = CGT.ConvertType(QualType(Base, 0)); in classifyReturnType()
5414 AArch64ABIInfo(CodeGenTypes &CGT, ABIKind Kind) in AArch64ABIInfo() argument
5415 : SwiftABIInfo(CGT), Kind(Kind) {} in AArch64ABIInfo()
5462 return occupiesMoreThan(CGT, scalars, /*total*/ 4); in shouldPassIndirectlyForSwift()
5478 AArch64TargetCodeGenInfo(CodeGenTypes &CGT, AArch64ABIInfo::ABIKind Kind) in AArch64TargetCodeGenInfo() argument
5479 : TargetCodeGenInfo(std::make_unique<AArch64ABIInfo>(CGT, Kind)) {} in AArch64TargetCodeGenInfo()
5529 WindowsAArch64TargetCodeGenInfo(CodeGenTypes &CGT, AArch64ABIInfo::ABIKind K) in WindowsAArch64TargetCodeGenInfo() argument
5530 : AArch64TargetCodeGenInfo(CGT, K) {} in WindowsAArch64TargetCodeGenInfo()
5687 llvm::ArrayType::get(CGT.ConvertType(QualType(Base, 0)), Members)); in classifyArgumentType()
6151 ARMABIInfo(CodeGenTypes &CGT, ABIKind _Kind) in ARMABIInfo() argument
6152 : SwiftABIInfo(CGT), Kind(_Kind) { in ARMABIInfo()
6154 IsFloatABISoftFP = CGT.getCodeGenOpts().FloatABI == "softfp" || in ARMABIInfo()
6155 CGT.getCodeGenOpts().FloatABI == ""; // default in ARMABIInfo()
6218 return occupiesMoreThan(CGT, scalars, /*total*/ 4); in shouldPassIndirectlyForSwift()
6229 ARMTargetCodeGenInfo(CodeGenTypes &CGT, ARMABIInfo::ABIKind K) in ARMTargetCodeGenInfo() argument
6230 : TargetCodeGenInfo(std::make_unique<ARMABIInfo>(CGT, K)) {} in ARMTargetCodeGenInfo()
6299 WindowsARMTargetCodeGenInfo(CodeGenTypes &CGT, ARMABIInfo::ABIKind K) in WindowsARMTargetCodeGenInfo() argument
6300 : ARMTargetCodeGenInfo(CGT, K) {} in WindowsARMTargetCodeGenInfo()
6467 llvm::ArrayType::get(CGT.ConvertType(QualType(Base, 0)), Members); in classifyArgumentType()
6892 NVPTXABIInfo(CodeGenTypes &CGT, NVPTXTargetCodeGenInfo &Info) in NVPTXABIInfo() argument
6893 : ABIInfo(CGT), CGInfo(Info) {} in NVPTXABIInfo()
6907 NVPTXTargetCodeGenInfo(CodeGenTypes &CGT) in NVPTXTargetCodeGenInfo() argument
6908 : TargetCodeGenInfo(std::make_unique<NVPTXABIInfo>(CGT, *this)) {} in NVPTXTargetCodeGenInfo()
7175 SystemZABIInfo(CodeGenTypes &CGT, bool HV, bool SF) in SystemZABIInfo() argument
7176 : SwiftABIInfo(CGT), HasVector(HV), IsSoftFloatABI(SF) {} in SystemZABIInfo()
7199 return occupiesMoreThan(CGT, scalars, /*total*/ 4); in shouldPassIndirectlyForSwift()
7208 SystemZTargetCodeGenInfo(CodeGenTypes &CGT, bool HasVector, bool SoftFloatABI) in SystemZTargetCodeGenInfo() argument
7210 std::make_unique<SystemZABIInfo>(CGT, HasVector, SoftFloatABI)) {} in SystemZTargetCodeGenInfo()
7500 return ABIArgInfo::getDirect(CGT.ConvertType(SingleElementTy)); in classifyArgumentType()
7548 MSP430ABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in MSP430ABIInfo() argument
7581 MSP430TargetCodeGenInfo(CodeGenTypes &CGT) in MSP430TargetCodeGenInfo() argument
7582 : TargetCodeGenInfo(std::make_unique<MSP430ABIInfo>(CGT)) {} in MSP430TargetCodeGenInfo()
7625 MipsABIInfo(CodeGenTypes &CGT, bool _IsO32) : in MipsABIInfo() argument
7626 ABIInfo(CGT), IsO32(_IsO32), MinABIStackAlignInBytes(IsO32 ? 4 : 8), in MipsABIInfo()
7640 MIPSTargetCodeGenInfo(CodeGenTypes &CGT, bool IsO32) in MIPSTargetCodeGenInfo() argument
7641 : TargetCodeGenInfo(std::make_unique<MipsABIInfo>(CGT, IsO32)), in MIPSTargetCodeGenInfo()
7732 return CGT.ConvertType(Ty); in HandleAggregates()
7866 RTList.push_back(CGT.ConvertType(b->getType())); in returnAggregateInRegs()
8040 AVRTargetCodeGenInfo(CodeGenTypes &CGT) in AVRTargetCodeGenInfo() argument
8041 : TargetCodeGenInfo(std::make_unique<DefaultABIInfo>(CGT)) {} in AVRTargetCodeGenInfo()
8070 TCETargetCodeGenInfo(CodeGenTypes &CGT) in TCETargetCodeGenInfo() argument
8071 : DefaultTargetCodeGenInfo(CGT) {} in TCETargetCodeGenInfo()
8132 HexagonABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in HexagonABIInfo() argument
8153 HexagonTargetCodeGenInfo(CodeGenTypes &CGT) in HexagonTargetCodeGenInfo() argument
8154 : TargetCodeGenInfo(std::make_unique<HexagonABIInfo>(CGT)) {} in HexagonTargetCodeGenInfo()
8251 const TargetInfo &T = CGT.getTarget(); in classifyReturnType()
8538 LanaiABIInfo(CodeGen::CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in LanaiABIInfo() argument
8658 LanaiTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT) in LanaiTargetCodeGenInfo() argument
8659 : TargetCodeGenInfo(std::make_unique<LanaiABIInfo>(CGT)) {} in LanaiTargetCodeGenInfo()
8690 explicit AMDGPUABIInfo(CodeGen::CodeGenTypes &CGT) : in AMDGPUABIInfo() argument
8691 DefaultABIInfo(CGT) {} in AMDGPUABIInfo()
8779 return ABIArgInfo::getDirect(CGT.ConvertType(QualType(SeltTy, 0))); in classifyReturnType()
8819 llvm::Type *OrigLTy = CGT.ConvertType(Ty); in classifyKernelArgumentType()
8867 return ABIArgInfo::getDirect(CGT.ConvertType(QualType(SeltTy, 0))); in classifyArgumentType()
8913 AMDGPUTargetCodeGenInfo(CodeGenTypes &CGT) in AMDGPUTargetCodeGenInfo() argument
8914 : TargetCodeGenInfo(std::make_unique<AMDGPUABIInfo>(CGT)) {} in AMDGPUTargetCodeGenInfo()
9146 SparcV8ABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in SparcV8ABIInfo() argument
9175 SparcV8TargetCodeGenInfo(CodeGenTypes &CGT) in SparcV8TargetCodeGenInfo() argument
9176 : TargetCodeGenInfo(std::make_unique<SparcV8ABIInfo>(CGT)) {} in SparcV8TargetCodeGenInfo()
9209 SparcV9ABIInfo(CodeGenTypes &CGT) : ABIInfo(CGT) {} in SparcV9ABIInfo() argument
9360 llvm::StructType *StrTy = dyn_cast<llvm::StructType>(CGT.ConvertType(Ty)); in classifyType()
9380 llvm::Type *ArgTy = CGT.ConvertType(Ty); in EmitVAArg()
9442 SparcV9TargetCodeGenInfo(CodeGenTypes &CGT) in SparcV9TargetCodeGenInfo() argument
9443 : TargetCodeGenInfo(std::make_unique<SparcV9ABIInfo>(CGT)) {} in SparcV9TargetCodeGenInfo()
9535 ARCTargetCodeGenInfo(CodeGenTypes &CGT) in ARCTargetCodeGenInfo() argument
9536 : TargetCodeGenInfo(std::make_unique<ARCABIInfo>(CGT)) {} in ARCTargetCodeGenInfo()
9724 XCoreABIInfo(CodeGen::CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in XCoreABIInfo() argument
9735 XCoreTargetCodeGenInfo(CodeGenTypes &CGT) in XCoreTargetCodeGenInfo() argument
9736 : TargetCodeGenInfo(std::make_unique<XCoreABIInfo>(CGT)) {} in XCoreTargetCodeGenInfo()
9757 llvm::Type *ArgTy = CGT.ConvertType(Ty); in EmitVAArg()
9941 SPIRTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT) in SPIRTargetCodeGenInfo() argument
9942 : TargetCodeGenInfo(std::make_unique<DefaultABIInfo>(CGT)) {} in SPIRTargetCodeGenInfo()
10315 RISCVABIInfo(CodeGen::CodeGenTypes &CGT, unsigned XLen, unsigned FLen) in RISCVABIInfo() argument
10316 : DefaultABIInfo(CGT), XLen(XLen), FLen(FLen) {} in RISCVABIInfo()
10408 Field1Ty = CGT.ConvertType(Ty); in detectFPCCEligibleStructHelper()
10413 Field2Ty = CGT.ConvertType(Ty); in detectFPCCEligibleStructHelper()
10426 Field1Ty = CGT.ConvertType(EltTy); in detectFPCCEligibleStructHelper()
10450 if (getRecordArgABI(Ty, CGT.getCXXABI())) in detectFPCCEligibleStructHelper()
10738 RISCVTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, unsigned XLen, in RISCVTargetCodeGenInfo() argument
10740 : TargetCodeGenInfo(std::make_unique<RISCVABIInfo>(CGT, XLen, FLen)) {} in RISCVTargetCodeGenInfo()
10771 VEABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in VEABIInfo() argument
10807 VETargetCodeGenInfo(CodeGenTypes &CGT) in VETargetCodeGenInfo() argument
10808 : TargetCodeGenInfo(std::make_unique<VEABIInfo>(CGT)) {} in VETargetCodeGenInfo()