Home
last modified time | relevance | path

Searched refs:getCodeModel (Results 1 – 25 of 60) sorted by relevance

123

/openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/
H A DLanaiTargetObjectFile.cpp51 if (GO == nullptr) return TM.getCodeModel() == CodeModel::Small; in isGlobalInSmallSection()
78 if (!GVA) return TM.getCodeModel() == CodeModel::Small; in isGlobalInSmallSectionImpl()
86 if (TM.getCodeModel() == CodeModel::Small) in isGlobalInSmallSectionImpl()
H A DLanaiTargetMachine.cpp67 Subtarget(TT, Cpu, FeatureString, *this, Options, getCodeModel(), in LanaiTargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Target/M68k/
H A DM68kSubtarget.cpp153 switch (TM.getCodeModel()) { in classifyLocalReference()
199 switch (TM.getCodeModel()) { in classifyGlobalReference()
226 if (TM.getCodeModel() == CodeModel::Medium && !atLeastM68020()) in getJumpTableEncoding()
H A DM68kInstrInfo.td424 def SmallCode : Predicate<"TM.getCodeModel() == CodeModel::Small">;
425 def KernelCode : Predicate<"TM.getCodeModel() == CodeModel::Kernel">;
426 def FarData : Predicate<"TM.getCodeModel() != CodeModel::Small &&"
427 "TM.getCodeModel() != CodeModel::Kernel">;
428 def NearData : Predicate<"TM.getCodeModel() == CodeModel::Small ||"
429 "TM.getCodeModel() == CodeModel::Kernel">;
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86Subtarget.cpp75 if (AllowTaggedGlobals && TM.getCodeModel() == CodeModel::Small && GV && in classifyLocalReference()
86 switch (TM.getCodeModel()) { in classifyLocalReference()
135 if (TM.getCodeModel() == CodeModel::Large && !isPositionIndependent()) in classifyGlobalReference()
170 if (TM.getCodeModel() == CodeModel::Large) in classifyGlobalReference()
H A DX86IndirectBranchTracking.cpp105 switch (MF.getTarget().getCodeModel()) { in needsPrologueENDBR()
H A DX86SpeculativeLoadHardening.cpp1111 if (MF.getTarget().getCodeModel() == CodeModel::Small && in tracePredStateThroughIndirectBranches()
1150 if (MF.getTarget().getCodeModel() == CodeModel::Small && in tracePredStateThroughIndirectBranches()
2127 if (MF.getTarget().getCodeModel() == CodeModel::Small && in tracePredStateThroughCall()
2165 if (MF.getTarget().getCodeModel() == CodeModel::Small && in tracePredStateThroughCall()
H A DX86InstructionSelector.cpp638 if (TM.getCodeModel() != CodeModel::Small) in selectGlobalValue()
1424 CodeModel::Model CM = TM.getCodeModel(); in materializeFP()
1470 } else if (STI.is64Bit() && TM.getCodeModel() == CodeModel::Small) in materializeFP()
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCSubtarget.cpp174 if (TM.getCodeModel() == CodeModel::Large) in isGVIndirectSymbol()
186 CodeModel::Medium == getTargetMachine().getCodeModel(); in isUsingPCRelativeCalls()
H A DPPCAsmPrinter.cpp956 TM.getCodeModel() == CodeModel::Small && in emitInstruction()
979 assert(IsAIX && TM.getCodeModel() == CodeModel::Small && in emitInstruction()
1039 assert((IsAIX && !IsPPC64 && TM.getCodeModel() == CodeModel::Large) && in emitInstruction()
1071 assert(IsAIX && !IsPPC64 && TM.getCodeModel() == CodeModel::Large && in emitInstruction()
1123 (MO.isCPI() && TM.getCodeModel() == CodeModel::Large)) in emitInstruction()
1165 if (!MO.isCPI() || TM.getCodeModel() == CodeModel::Large) in emitInstruction()
1717 if (TM.getCodeModel() == CodeModel::Large in emitFunctionEntryLabel()
1843 if (TM.getCodeModel() != CodeModel::Large) { in emitFunctionBodyStart()
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64Subtarget.cpp363 if (TM.getCodeModel() == CodeModel::Large && isTargetMachO()) in ClassifyGlobalReference()
380 if ((useSmallAddressing() || TM.getCodeModel() == CodeModel::Tiny) && in ClassifyGlobalReference()
398 if (TM.getCodeModel() == CodeModel::Large && isTargetMachO() && in classifyGlobalFunctionReference()
H A DAArch64TargetMachine.cpp348 if ((getCodeModel() == CodeModel::Small || in AArch64TargetMachine()
349 getCodeModel() == CodeModel::Kernel) && in AArch64TargetMachine()
353 else if (getCodeModel() == CodeModel::Tiny && this->Options.TLSSize > 24) in AArch64TargetMachine()
363 !(getCodeModel() == CodeModel::Large && TT.isOSBinFormatMachO())) { in AArch64TargetMachine()
H A DAArch64Subtarget.h288 switch (TLInfo.getTargetMachine().getCodeModel()) { in useSmallAddressing()
/openbsd-src/gnu/llvm/llvm/include/llvm/CodeGen/
H A DCommandFlags.h45 CodeModel::Model getCodeModel();
/openbsd-src/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/
H A DJITTargetMachineBuilder.h101 const std::optional<CodeModel::Model> &getCodeModel() const { return CM; } in getCodeModel() function
/openbsd-src/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreTargetObjectFile.cpp122 if (TM.getCodeModel() == CodeModel::Small || !ObjType->isSized() || in SelectSectionForGlobal()
/openbsd-src/gnu/llvm/llvm/include/llvm/Target/
H A DTargetMachine.h233 CodeModel::Model getCodeModel() const { return CMModel; } in getCodeModel() function
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DSanitizerBinaryMetadata.cpp143 const auto CM = Mod.getCodeModel(); in getVersion()
/openbsd-src/gnu/llvm/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp46 TM.getCodeModel() == CodeModel::Large); in Initialize()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DBackendUtil.cpp304 getCodeModel(const CodeGenOptions &CodeGenOpts) { in getCodeModel() function
563 std::optional<llvm::CodeModel::Model> CM = getCodeModel(CodeGenOpts); in CreateTargetMachine()
1149 Conf.CodeModel = getCodeModel(CGOpts); in runThinLTOBackend()
/openbsd-src/gnu/llvm/llvm/lib/Target/LoongArch/
H A DLoongArchExpandPseudoInsts.cpp261 switch (MF->getTarget().getCodeModel()) { in expandFunctionCALL()
/openbsd-src/gnu/llvm/llvm/lib/Target/VE/
H A DVEAsmPrinter.cpp192 switch (TM.getCodeModel()) { in lowerGETGOTAndEmitMCInsts()
/openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/
H A DSparcAsmPrinter.cpp184 switch(TM.getCodeModel()) { in LowerGETPCXAndEmitMCInsts()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DModule.h866 std::optional<CodeModel::Model> getCodeModel() const;
/openbsd-src/gnu/llvm/llvm/tools/llc/
H A Dllc.cpp577 std::optional<CodeModel::Model> CM_IR = M->getCodeModel(); in compileModule()

123