Home
last modified time | relevance | path

Searched refs:CodeModel (Results 1 – 25 of 154) sorted by relevance

1234567

/openbsd-src/gnu/llvm/llvm/include/llvm/Target/
H A DCodeGenCWrappers.h25 inline std::optional<CodeModel::Model> unwrap(LLVMCodeModel Model, bool &JIT) { in unwrap()
34 return CodeModel::Tiny; in unwrap()
36 return CodeModel::Small; in unwrap()
38 return CodeModel::Kernel; in unwrap()
40 return CodeModel::Medium; in unwrap()
42 return CodeModel::Large; in unwrap()
44 return CodeModel::Small; in unwrap()
47 inline LLVMCodeModel wrap(CodeModel::Model Model) { in wrap()
49 case CodeModel::Tiny: in wrap()
51 case CodeModel::Small: in wrap()
[all …]
H A DTargetMachine.h102 CodeModel::Model CMModel = CodeModel::Small;
233 CodeModel::Model getCodeModel() const { return CMModel; } in getCodeModel()
236 void setCodeModel(CodeModel::Model CM) { CMModel = CM; } in setCodeModel()
422 CodeModel::Model CM, CodeGenOpt::Level OL);
509 inline CodeModel::Model
510 getEffectiveCodeModel(std::optional<CodeModel::Model> CM, in getEffectiveCodeModel()
511 CodeModel::Model Default) { in getEffectiveCodeModel()
514 if (*CM == CodeModel::Tiny) in getEffectiveCodeModel()
516 if (*CM == CodeModel::Kernel) in getEffectiveCodeModel()
/openbsd-src/gnu/llvm/llvm/lib/Target/Sparc/
H A DSparcTargetMachine.cpp80 static CodeModel::Model
81 getEffectiveSparcCodeModel(std::optional<CodeModel::Model> CM, Reloc::Model RM, in getEffectiveSparcCodeModel()
84 if (*CM == CodeModel::Tiny) in getEffectiveSparcCodeModel()
86 if (*CM == CodeModel::Kernel) in getEffectiveSparcCodeModel()
92 return CodeModel::Large; in getEffectiveSparcCodeModel()
93 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSparcCodeModel()
95 return CodeModel::Small; in getEffectiveSparcCodeModel()
103 std::optional<CodeModel::Model> CM, in SparcTargetMachine()
213 std::optional<CodeModel::Model> CM, in SparcV8TargetMachine()
223 std::optional<CodeModel::Model> CM, in SparcV9TargetMachine()
[all …]
H A DSparcTargetMachine.h33 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
60 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
73 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
84 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
/openbsd-src/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreTargetMachine.cpp33 static CodeModel::Model
34 getEffectiveXCoreCodeModel(std::optional<CodeModel::Model> CM) { in getEffectiveXCoreCodeModel()
36 if (*CM != CodeModel::Small && *CM != CodeModel::Large) in getEffectiveXCoreCodeModel()
40 return CodeModel::Small; in getEffectiveXCoreCodeModel()
49 std::optional<CodeModel::Model> CM, in XCoreTargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Target/M68k/
H A DM68kSubtarget.cpp156 case CodeModel::Small: in classifyLocalReference()
157 case CodeModel::Kernel: { in classifyLocalReference()
160 case CodeModel::Medium: { in classifyLocalReference()
202 case CodeModel::Small: in classifyGlobalReference()
203 case CodeModel::Kernel: { in classifyGlobalReference()
208 case CodeModel::Medium: { in classifyGlobalReference()
226 if (TM.getCodeModel() == CodeModel::Medium && !atLeastM68020()) in getJumpTableEncoding()
H A DM68kTargetMachine.cpp84 CodeModel::Model getEffectiveCodeModel(std::optional<CodeModel::Model> CM, in getEffectiveCodeModel()
87 return CodeModel::Small; in getEffectiveCodeModel()
88 } else if (CM == CodeModel::Large) { in getEffectiveCodeModel()
90 } else if (CM == CodeModel::Kernel) { in getEffectiveCodeModel()
101 std::optional<CodeModel::Model> CM, in M68kTargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZTargetMachine.cpp126 static CodeModel::Model
127 getEffectiveSystemZCodeModel(std::optional<CodeModel::Model> CM, in getEffectiveSystemZCodeModel()
130 if (*CM == CodeModel::Tiny) in getEffectiveSystemZCodeModel()
132 if (*CM == CodeModel::Kernel) in getEffectiveSystemZCodeModel()
137 return RM == Reloc::PIC_ ? CodeModel::Small : CodeModel::Medium; in getEffectiveSystemZCodeModel()
138 return CodeModel::Small; in getEffectiveSystemZCodeModel()
145 std::optional<CodeModel::Model> CM, in SystemZTargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Orc/
H A DJITTargetMachineBuilder.cpp110 case CodeModel::Tiny: in print()
113 case CodeModel::Small: in print()
116 case CodeModel::Kernel: in print()
119 case CodeModel::Medium: in print()
122 case CodeModel::Large: in print()
/openbsd-src/gnu/llvm/llvm/lib/Target/X86/
H A DX86Subtarget.cpp75 if (AllowTaggedGlobals && TM.getCodeModel() == CodeModel::Small && GV && in classifyLocalReference()
88 case CodeModel::Tiny: in classifyLocalReference()
90 case CodeModel::Small: in classifyLocalReference()
91 case CodeModel::Kernel: in classifyLocalReference()
95 case CodeModel::Large: in classifyLocalReference()
99 case CodeModel::Medium: in classifyLocalReference()
135 if (TM.getCodeModel() == CodeModel::Large && !isPositionIndependent()) in classifyGlobalReference()
170 if (TM.getCodeModel() == CodeModel::Large) in classifyGlobalReference()
H A DX86TargetMachine.cpp208 static CodeModel::Model
209 getEffectiveX86CodeModel(std::optional<CodeModel::Model> CM, bool JIT, in getEffectiveX86CodeModel()
212 if (*CM == CodeModel::Tiny) in getEffectiveX86CodeModel()
217 return Is64Bit ? CodeModel::Large : CodeModel::Small; in getEffectiveX86CodeModel()
218 return CodeModel::Small; in getEffectiveX86CodeModel()
227 std::optional<CodeModel::Model> CM, in X86TargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Target/Lanai/
H A DLanaiTargetMachine.cpp61 std::optional<CodeModel::Model> CodeModel, CodeGenOpt::Level OptLevel, in LanaiTargetMachine() argument
65 getEffectiveCodeModel(CodeModel, CodeModel::Medium), in LanaiTargetMachine()
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.h34 std::optional<CodeModel::Model> CodeModel,
H A DLanaiSubtarget.h35 const TargetOptions &Options, CodeModel::Model CodeModel,
/openbsd-src/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64TargetMachine.cpp291 static CodeModel::Model
293 std::optional<CodeModel::Model> CM, bool JIT) { in getEffectiveAArch64CodeModel()
295 if (*CM != CodeModel::Small && *CM != CodeModel::Tiny && in getEffectiveAArch64CodeModel()
296 *CM != CodeModel::Large) { in getEffectiveAArch64CodeModel()
299 } else if (*CM == CodeModel::Tiny && !TT.isOSBinFormatELF()) in getEffectiveAArch64CodeModel()
310 return CodeModel::Large; in getEffectiveAArch64CodeModel()
311 return CodeModel::Small; in getEffectiveAArch64CodeModel()
320 std::optional<CodeModel::Model> CM, in AArch64TargetMachine()
348 if ((getCodeModel() == CodeModel::Small || in AArch64TargetMachine()
349 getCodeModel() == CodeModel::Kernel) && in AArch64TargetMachine()
[all …]
H A DAArch64TargetMachine.h33 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
83 std::optional<CodeModel::Model> CM,
96 std::optional<CodeModel::Model> CM,
/openbsd-src/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCTargetMachine.cpp265 static CodeModel::Model
266 getEffectivePPCCodeModel(const Triple &TT, std::optional<CodeModel::Model> CM, in getEffectivePPCCodeModel()
269 if (*CM == CodeModel::Tiny) in getEffectivePPCCodeModel()
271 if (*CM == CodeModel::Kernel) in getEffectivePPCCodeModel()
277 return CodeModel::Small; in getEffectivePPCCodeModel()
279 return CodeModel::Small; in getEffectivePPCCodeModel()
284 return CodeModel::Small; in getEffectivePPCCodeModel()
287 return CodeModel::Medium; in getEffectivePPCCodeModel()
330 std::optional<CodeModel::Model> CM, in PPCTargetMachine()
/openbsd-src/gnu/llvm/llvm/lib/Target/Xtensa/
H A DXtensaTargetMachine.cpp51 std::optional<CodeModel::Model> CM, in XtensaTargetMachine()
56 getEffectiveCodeModel(CM, CodeModel::Small), OL), in XtensaTargetMachine()
65 std::optional<CodeModel::Model> CM, in XtensaTargetMachine()
/openbsd-src/gnu/llvm/clang/lib/Basic/Targets/
H A DRISCV.cpp131 StringRef CodeModel = getTargetOpts().CodeModel; in getTargetDefines() local
136 if (CodeModel == "default") in getTargetDefines()
137 CodeModel = "small"; in getTargetDefines()
139 if (CodeModel == "small") in getTargetDefines()
141 else if (CodeModel == "medium") in getTargetDefines()
/openbsd-src/gnu/llvm/llvm/lib/Target/NVPTX/
H A DNVPTXTargetMachine.h41 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OP,
89 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
100 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
/openbsd-src/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsTargetMachine.h43 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
92 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
105 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
/openbsd-src/gnu/llvm/llvm/lib/Target/ARM/
H A DARMTargetMachine.h45 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
95 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
106 std::optional<CodeModel::Model> CM, CodeGenOpt::Level OL,
/openbsd-src/gnu/llvm/llvm/include/llvm/ExecutionEngine/Orc/
H A DJITTargetMachineBuilder.h95 JITTargetMachineBuilder &setCodeModel(std::optional<CodeModel::Model> CM) { in setCodeModel()
101 const std::optional<CodeModel::Model> &getCodeModel() const { return CM; } in getCodeModel()
154 std::optional<CodeModel::Model> CM;
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DCommandFlags.cpp60 CGOPT_EXP(CodeModel::Model, CodeModel) in CGOPT()
155 static cl::opt<CodeModel::Model> CodeModel( in CGOPT() local
157 cl::values(clEnumValN(CodeModel::Tiny, "tiny", "Tiny code model"), in CGOPT()
158 clEnumValN(CodeModel::Small, "small", "Small code model"), in CGOPT()
159 clEnumValN(CodeModel::Kernel, "kernel", "Kernel code model"), in CGOPT()
160 clEnumValN(CodeModel::Medium, "medium", "Medium code model"), in CGOPT()
161 clEnumValN(CodeModel::Large, "large", "Large code model"))); in CGOPT()
162 CGBINDOPT(CodeModel); in CGOPT()

1234567