Home
last modified time | relevance | path

Searched refs:CGT (Results 1 – 25 of 36) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DSPIR.cpp23 CommonSPIRABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) { setCCs(); } in CommonSPIRABIInfo() argument
31 SPIRVABIInfo(CodeGenTypes &CGT) : CommonSPIRABIInfo(CGT) {} in SPIRVABIInfo() argument
41 CommonSPIRTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT) in CommonSPIRTargetCodeGenInfo() argument
42 : TargetCodeGenInfo(std::make_unique<CommonSPIRABIInfo>(CGT)) {} in CommonSPIRTargetCodeGenInfo()
56 SPIRVTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT) in SPIRVTargetCodeGenInfo() argument
57 : CommonSPIRTargetCodeGenInfo(std::make_unique<SPIRVABIInfo>(CGT)) {} in SPIRVTargetCodeGenInfo()
72 llvm::Type *LTy = CGT.ConvertType(Ty); in classifyKernelArgumentType()
H A DWebAssembly.cpp26 explicit WebAssemblyABIInfo(CodeGen::CodeGenTypes &CGT, in WebAssemblyABIInfo() argument
28 : ABIInfo(CGT), defaultInfo(CGT), Kind(Kind) {} in WebAssemblyABIInfo()
50 explicit WebAssemblyTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, in WebAssemblyTargetCodeGenInfo() argument
52 : TargetCodeGenInfo(std::make_unique<WebAssemblyABIInfo>(CGT, K)) { in WebAssemblyTargetCodeGenInfo()
54 std::make_unique<SwiftABIInfo>(CGT, /*SwiftErrorInRegister=*/false); in WebAssemblyTargetCodeGenInfo()
114 return ABIArgInfo::getDirect(CGT.ConvertType(QualType(SeltTy, 0))); in classifyArgumentType()
147 return ABIArgInfo::getDirect(CGT.ConvertType(QualType(SeltTy, 0))); in classifyReturnType()
H A DVE.cpp21 VEABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in VEABIInfo() argument
57 VETargetCodeGenInfo(CodeGenTypes &CGT) in VETargetCodeGenInfo() argument
58 : TargetCodeGenInfo(std::make_unique<VEABIInfo>(CGT)) {} in VETargetCodeGenInfo()
H A DSparc.cpp24 SparcV8ABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in SparcV8ABIInfo() argument
53 SparcV8TargetCodeGenInfo(CodeGenTypes &CGT) in SparcV8TargetCodeGenInfo() argument
54 : TargetCodeGenInfo(std::make_unique<SparcV8ABIInfo>(CGT)) {} in SparcV8TargetCodeGenInfo()
109 SparcV9ABIInfo(CodeGenTypes &CGT) : ABIInfo(CGT) {} in SparcV9ABIInfo() argument
260 llvm::StructType *StrTy = dyn_cast<llvm::StructType>(CGT.ConvertType(Ty)); in classifyType()
280 llvm::Type *ArgTy = CGT.ConvertType(Ty); in EmitVAArg()
343 SparcV9TargetCodeGenInfo(CodeGenTypes &CGT) in SparcV9TargetCodeGenInfo() argument
344 : TargetCodeGenInfo(std::make_unique<SparcV9ABIInfo>(CGT)) {} in SparcV9TargetCodeGenInfo()
H A DMSP430.cpp29 MSP430ABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in MSP430ABIInfo() argument
62 MSP430TargetCodeGenInfo(CodeGenTypes &CGT) in MSP430TargetCodeGenInfo() argument
63 : TargetCodeGenInfo(std::make_unique<MSP430ABIInfo>(CGT)) {} in MSP430TargetCodeGenInfo()
H A DBPF.cpp23 BPFABIInfo(CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in BPFABIInfo() argument
91 BPFTargetCodeGenInfo(CodeGenTypes &CGT) in BPFTargetCodeGenInfo() argument
92 : TargetCodeGenInfo(std::make_unique<BPFABIInfo>(CGT)) {} in BPFTargetCodeGenInfo()
H A DPNaCl.cpp24 PNaClABIInfo(CodeGen::CodeGenTypes &CGT) : ABIInfo(CGT) {} in PNaClABIInfo() argument
36 PNaClTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT) in PNaClTargetCodeGenInfo() argument
37 : TargetCodeGenInfo(std::make_unique<PNaClABIInfo>(CGT)) {} in PNaClTargetCodeGenInfo()
H A DCSKY.cpp27 CSKYABIInfo(CodeGen::CodeGenTypes &CGT, unsigned FLen) in CSKYABIInfo() argument
28 : DefaultABIInfo(CGT), FLen(FLen) {} in CSKYABIInfo()
97 return ABIArgInfo::getDirect(CGT.ConvertType(QualType(SeltTy, 0))); in classifyArgumentType()
167 CSKYTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, unsigned FLen) in CSKYTargetCodeGenInfo() argument
168 : TargetCodeGenInfo(std::make_unique<CSKYABIInfo>(CGT, FLen)) {} in CSKYTargetCodeGenInfo()
H A DAVR.cpp33 AVRABIInfo(CodeGenTypes &CGT, unsigned NPR, unsigned NRR) in AVRABIInfo() argument
34 : DefaultABIInfo(CGT), ParamRegs(NPR), RetRegs(NRR) {} in AVRABIInfo()
114 AVRTargetCodeGenInfo(CodeGenTypes &CGT, unsigned NPR, unsigned NRR) in AVRTargetCodeGenInfo() argument
115 : TargetCodeGenInfo(std::make_unique<AVRABIInfo>(CGT, NPR, NRR)) {} in AVRTargetCodeGenInfo()
H A DSystemZ.cpp28 SystemZABIInfo(CodeGenTypes &CGT, bool HV, bool SF) in SystemZABIInfo() argument
29 : ABIInfo(CGT), HasVector(HV), IsSoftFloatABI(SF) {} in SystemZABIInfo()
60 SystemZTargetCodeGenInfo(CodeGenTypes &CGT, bool HasVector, bool SoftFloatABI) in SystemZTargetCodeGenInfo() argument
62 std::make_unique<SystemZABIInfo>(CGT, HasVector, SoftFloatABI)), in SystemZTargetCodeGenInfo()
63 Ctx(CGT.getContext()) { in SystemZTargetCodeGenInfo()
65 std::make_unique<SwiftABIInfo>(CGT, /*SwiftErrorInRegister=*/false); in SystemZTargetCodeGenInfo()
261 CGT.getCGM().getTargetCodeGenInfo()); in EmitVAArg()
272 SZCGI.handleExternallyVisibleObjABI(Ty.getTypePtr(), CGT.getCGM(), in EmitVAArg()
431 return ABIArgInfo::getDirect(CGT.ConvertType(SingleElementTy)); in classifyArgumentType()
468 CGT.getCGM().getTargetCodeGenInfo()); in computeInfo()
[all …]
H A DPPC.cpp115 AIXABIInfo(CodeGen::CodeGenTypes &CGT, bool Is64Bit) in AIXABIInfo() argument
139 AIXTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, bool Is64Bit) in AIXTargetCodeGenInfo() argument
140 : TargetCodeGenInfo(std::make_unique<AIXABIInfo>(CGT, Is64Bit)), in AIXTargetCodeGenInfo()
278 PPC32_SVR4_ABIInfo(CodeGen::CodeGenTypes &CGT, bool SoftFloatABI, in PPC32_SVR4_ABIInfo() argument
280 : DefaultABIInfo(CGT), IsSoftFloatABI(SoftFloatABI), in PPC32_SVR4_ABIInfo()
298 PPC32TargetCodeGenInfo(CodeGenTypes &CGT, bool SoftFloatABI, in PPC32TargetCodeGenInfo() argument
301 CGT, SoftFloatABI, RetSmallStructInRegABI)) {} in PPC32TargetCodeGenInfo()
562 : ABIInfo(CGT), Kind(Kind), IsSoftFloatABI(SoftFloatABI) {} in PPC64_SVR4_ABIInfo()
630 PPC64TargetCodeGenInfo(CodeGenTypes &CGT) in PPC64TargetCodeGenInfo() argument
801 llvm::Type *BaseTy = CGT.ConvertType(QualType(Base, 0)); in classifyArgumentType()
[all …]
H A DLanai.cpp26 LanaiABIInfo(CodeGen::CodeGenTypes &CGT) : DefaultABIInfo(CGT) {} in LanaiABIInfo() argument
146 LanaiTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT) in LanaiTargetCodeGenInfo() argument
147 : TargetCodeGenInfo(std::make_unique<LanaiABIInfo>(CGT)) {} in LanaiTargetCodeGenInfo()
H A DARM.cpp26 ARMABIInfo(CodeGenTypes &CGT, ARMABIKind Kind) : ABIInfo(CGT), Kind(Kind) { in ARMABIInfo() argument
28 IsFloatABISoftFP = CGT.getCodeGenOpts().FloatABI == "softfp" || in ARMABIInfo()
29 CGT.getCodeGenOpts().FloatABI == ""; // default in ARMABIInfo()
94 explicit ARMSwiftABIInfo(CodeGenTypes &CGT) in ARMSwiftABIInfo() argument
95 : SwiftABIInfo(CGT, /*SwiftErrorInRegister=*/true) {} in ARMSwiftABIInfo()
103 ARMTargetCodeGenInfo(CodeGenTypes &CGT, ARMABIKind K) in ARMTargetCodeGenInfo() argument
104 : TargetCodeGenInfo(std::make_unique<ARMABIInfo>(CGT, K)) { in ARMTargetCodeGenInfo()
105 SwiftInfo = std::make_unique<ARMSwiftABIInfo>(CGT); in ARMTargetCodeGenInfo()
209 WindowsARMTargetCodeGenInfo(CodeGenTypes &CGT, ARMABIKind K) in WindowsARMTargetCodeGenInfo() argument
210 : ARMTargetCodeGenInfo(CGT, K) {} in WindowsARMTargetCodeGenInfo()
[all …]
H A DRISCV.cpp38 RISCVABIInfo(CodeGen::CodeGenTypes &CGT, unsigned XLen, unsigned FLen, in RISCVABIInfo() argument
40 : DefaultABIInfo(CGT), XLen(XLen), FLen(FLen), NumArgGPRs(EABI ? 6 : 8), in RISCVABIInfo()
129 Field1Ty = CGT.ConvertType(Ty); in detectFPCCEligibleStructHelper()
134 Field2Ty = CGT.ConvertType(Ty); in detectFPCCEligibleStructHelper()
147 Field1Ty = CGT.ConvertType(EltTy); in detectFPCCEligibleStructHelper()
178 if (getRecordArgABI(Ty, CGT.getCXXABI())) in detectFPCCEligibleStructHelper()
337 EltType = CGT.ConvertType(VT->getElementType()); in coerceVLSVector()
523 RISCVTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, unsigned XLen, in RISCVTargetCodeGenInfo() argument
526 std::make_unique<RISCVABIInfo>(CGT, XLen, FLen, EABI)) {} in RISCVTargetCodeGenInfo()
H A DLoongArch.cpp38 LoongArchABIInfo(CodeGen::CodeGenTypes &CGT, unsigned GRLen, unsigned FRLen) in LoongArchABIInfo() argument
39 : DefaultABIInfo(CGT), GRLen(GRLen), FRLen(FRLen) {} in LoongArchABIInfo()
123 Field1Ty = CGT.ConvertType(Ty); in detectFARsEligibleStructHelper()
128 Field2Ty = CGT.ConvertType(Ty); in detectFARsEligibleStructHelper()
141 Field1Ty = CGT.ConvertType(EltTy); in detectFARsEligibleStructHelper()
171 if (getRecordArgABI(Ty, CGT.getCXXABI())) in detectFARsEligibleStructHelper()
449 LoongArchTargetCodeGenInfo(CodeGen::CodeGenTypes &CGT, unsigned GRLen, in LoongArchTargetCodeGenInfo() argument
452 std::make_unique<LoongArchABIInfo>(CGT, GRLen, FRLen)) {} in LoongArchTargetCodeGenInfo()
H A DX86.cpp182 : ABIInfo(CGT), IsDarwinVectorABI(DarwinVectorABI), in X86_32ABIInfo()
193 explicit X86_32SwiftABIInfo(CodeGenTypes &CGT) in X86_32SwiftABIInfo() argument
876 if (IsX86_MMXType(CGT.ConvertType(Ty))) in classifyArgumentType()
985 llvm::Type *LLTy = CGT.ConvertTypeForMem(Type); in addFieldToArgStruct()
1344 : ABIInfo(CGT), AVXLevel(AVXLevel), in X86_64ABIInfo()
1376 : ABIInfo(CGT), AVXLevel(AVXLevel), in WinX86_64ABIInfo()
2252 llvm::Type *IRType = CGT.ConvertType(Ty); in GetByteVectorType()
2759 llvm::Type *IRType = CGT.ConvertType(Ty); in classifyArgumentType()
2894 WinX86_64ABIInfo Win64ABIInfo(CGT, AVXLevel); in computeInfo()
3274 llvm::Type *LLTy = CGT.ConvertType(Ty); in classify()
[all …]
H A DM68k.cpp23 M68kTargetCodeGenInfo(CodeGenTypes &CGT) in M68kTargetCodeGenInfo() argument
24 : TargetCodeGenInfo(std::make_unique<DefaultABIInfo>(CGT)) {} in M68kTargetCodeGenInfo()
H A DMips.cpp30 MipsABIInfo(CodeGenTypes &CGT, bool _IsO32) : in MipsABIInfo() argument
31 ABIInfo(CGT), IsO32(_IsO32), MinABIStackAlignInBytes(IsO32 ? 4 : 8), in MipsABIInfo()
45 MIPSTargetCodeGenInfo(CodeGenTypes &CGT, bool IsO32) in MIPSTargetCodeGenInfo() argument
46 : TargetCodeGenInfo(std::make_unique<MipsABIInfo>(CGT, IsO32)), in MIPSTargetCodeGenInfo()
137 return CGT.ConvertType(Ty); in HandleAggregates()
271 RTList.push_back(CGT.ConvertType(b->getType())); in returnAggregateInRegs()
H A DAArch64.cpp25 AArch64ABIInfo(CodeGenTypes &CGT, AArch64ABIKind Kind) in AArch64ABIInfo() argument
26 : ABIInfo(CGT), Kind(Kind) {} in AArch64ABIInfo()
81 explicit AArch64SwiftABIInfo(CodeGenTypes &CGT) in AArch64SwiftABIInfo() argument
82 : SwiftABIInfo(CGT, /*SwiftErrorInRegister=*/true) {} in AArch64SwiftABIInfo()
90 AArch64TargetCodeGenInfo(CodeGenTypes &CGT, AArch64ABIKind Kind) in AArch64TargetCodeGenInfo() argument
91 : TargetCodeGenInfo(std::make_unique<AArch64ABIInfo>(CGT, Kind)) { in AArch64TargetCodeGenInfo()
92 SwiftInfo = std::make_unique<AArch64SwiftABIInfo>(CGT); in AArch64TargetCodeGenInfo()
162 WindowsAArch64TargetCodeGenInfo(CodeGenTypes &CGT, AArch64ABIKind K) in WindowsAArch64TargetCodeGenInfo() argument
163 : AArch64TargetCodeGenInfo(CGT, K) {} in WindowsAArch64TargetCodeGenInfo()
328 llvm::ArrayType::get(CGT.ConvertType(QualType(Base, 0)), Members)); in classifyArgumentType()
[all …]
H A DTCE.cpp25 TCETargetCodeGenInfo(CodeGenTypes &CGT) in TCETargetCodeGenInfo() argument
26 : TargetCodeGenInfo(std::make_unique<DefaultABIInfo>(CGT)) {} in TCETargetCodeGenInfo()
/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfo.h46 CodeGen::CodeGenTypes &CGT;
51 : CGT(cgt), RuntimeCC(llvm::CallingConv::C) {} in ABIInfo()
120 CodeGenTypes &CGT;
127 SwiftABIInfo(CodeGen::CodeGenTypes &CGT, bool SwiftErrorInRegister) in SwiftABIInfo() argument
128 : CGT(CGT), SwiftErrorInRegister(SwiftErrorInRegister) {} in SwiftABIInfo()
H A DABIInfo.cpp18 CGCXXABI &ABIInfo::getCXXABI() const { return CGT.getCXXABI(); } in getCXXABI()
20 ASTContext &ABIInfo::getContext() const { return CGT.getContext(); } in getContext()
23 return CGT.getLLVMContext(); in getVMContext()
27 return CGT.getDataLayout(); in getDataLayout()
30 const TargetInfo &ABIInfo::getTarget() const { return CGT.getTarget(); } in getTarget()
33 return CGT.getCodeGenOpts(); in getCodeGenOpts()
210 auto ptrWidth = CGT.getTarget().getPointerWidth(LangAS::Default); in occupiesMoreThan()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DSyntheticCountsUtils.h30 using CGT = GraphTraits<CallGraphType>; variable
31 using NodeRef = typename CGT::NodeRef;
32 using EdgeRef = typename CGT::EdgeRef;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DSyntheticCountsUtils.cpp36 if (SCCNodes.count(CGT::edge_dest(E))) in propagateFromSCC()
56 auto Callee = CGT::edge_dest(E.second); in propagateFromSCC()
69 auto Callee = CGT::edge_dest(E.second); in propagateFromSCC()
/freebsd-14.2/contrib/llvm-project/llvm/utils/TableGen/
H A DDAGISelMatcherGen.cpp753 const CodeGenTarget &CGT = CGP.getTargetInfo(); in mayInstNodeLoadOrStore() local
754 CodeGenInstruction &II = CGT.getInstruction(Op); in mayInstNodeLoadOrStore()
782 const CodeGenTarget &CGT = CGP.getTargetInfo(); in EmitResultInstructionAsOperand() local
783 CodeGenInstruction &II = CGT.getInstruction(Op); in EmitResultInstructionAsOperand()
918 if (II.HasOneImplicitDefWithKnownVT(CGT) != MVT::Other) in EmitResultInstructionAsOperand()
923 ResultVTs.push_back(getRegisterValueType(Reg, CGT)); in EmitResultInstructionAsOperand()
1055 const CodeGenTarget &CGT = CGP.getTargetInfo(); in EmitResultCode() local
1056 CodeGenInstruction &II = CGT.getInstruction(DstPat->getOperator()); in EmitResultCode()
1058 if (II.HasOneImplicitDefWithKnownVT(CGT) != MVT::Other) in EmitResultCode()

12