reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Target/TargetMachine.h
  209   CodeModel::Model getCodeModel() const;

References

gen/lib/Target/X86/X86GenDAGISel.inc
253376   case 20: return (!TM.isPositionIndependent()) && (TM.getCodeModel() == CodeModel::Small ||TM.getCodeModel() == CodeModel::Kernel);
253376   case 20: return (!TM.isPositionIndependent()) && (TM.getCodeModel() == CodeModel::Small ||TM.getCodeModel() == CodeModel::Kernel);
253520   case 164: return (TM.getCodeModel() == CodeModel::Kernel);
gen/lib/Target/X86/X86GenGlobalISel.inc
  353   if (TM.getCodeModel() == CodeModel::Kernel)
  355   if (TM.getCodeModel() == CodeModel::Small ||TM.getCodeModel() == CodeModel::Kernel)
  355   if (TM.getCodeModel() == CodeModel::Small ||TM.getCodeModel() == CodeModel::Kernel)
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
   99   CodeModel::Model CM = TgtM.getCodeModel();
lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
  482     if (MF->getTarget().getCodeModel() == CodeModel::Tiny) {
  599         MF->getTarget().getCodeModel() == CodeModel::Kernel)
lib/Target/AArch64/AArch64FastISel.cpp
  418   if (Subtarget->isTargetMachO() && TM.getCodeModel() == CodeModel::Large) {
 3210   CodeModel::Model CM = TM.getCodeModel();
lib/Target/AArch64/AArch64FrameLowering.cpp
 1051     switch (MF.getTarget().getCodeModel()) {
lib/Target/AArch64/AArch64ISelLowering.cpp
  530   if (Subtarget->isTargetMachO() && TM.getCodeModel() == CodeModel::Large) {
 4039     if (getTargetMachine().getCodeModel() == CodeModel::Large &&
 4375   if (getTargetMachine().getCodeModel() == CodeModel::Large) {
 4377   } else if (getTargetMachine().getCodeModel() == CodeModel::Tiny) {
 4505   if (getTargetMachine().getCodeModel() == CodeModel::Large)
 5259   if (getTargetMachine().getCodeModel() == CodeModel::Large &&
 5262   } else if (getTargetMachine().getCodeModel() == CodeModel::Tiny) {
 5288   if (getTargetMachine().getCodeModel() == CodeModel::Large) {
 5294   } else if (getTargetMachine().getCodeModel() == CodeModel::Tiny) {
 5304   if (getTargetMachine().getCodeModel() == CodeModel::Large &&
 5307   } else if (getTargetMachine().getCodeModel() == CodeModel::Tiny) {
lib/Target/AArch64/AArch64InstrInfo.cpp
 1525   } else if (TM.getCodeModel() == CodeModel::Large) {
 1546   } else if (TM.getCodeModel() == CodeModel::Tiny) {
lib/Target/AArch64/AArch64InstructionSelector.cpp
 1698     } else if (TM.getCodeModel() == CodeModel::Large) {
 1703     } else if (TM.getCodeModel() == CodeModel::Tiny) {
 2290     if (TM.getCodeModel() == CodeModel::Large) {
lib/Target/AArch64/AArch64Subtarget.cpp
  218   if (TM.getCodeModel() == CodeModel::Large && isTargetMachO())
  232   if ((useSmallAddressing() || TM.getCodeModel() == CodeModel::Tiny) &&
  250   if (TM.getCodeModel() == CodeModel::Large && isTargetMachO() &&
lib/Target/AArch64/AArch64Subtarget.h
  451     switch (TLInfo.getTargetMachine().getCodeModel()) {
lib/Target/AArch64/AArch64TargetMachine.cpp
  291       !(getCodeModel() == CodeModel::Large && TT.isOSBinFormatMachO())) {
lib/Target/ARM/ARMFrameLowering.cpp
  531     switch (TM.getCodeModel()) {
lib/Target/ARM/ARMISelLowering.cpp
10283   switch (TM.getCodeModel()) {
lib/Target/Lanai/LanaiISelLowering.cpp
 1136   if (getTargetMachine().getCodeModel() == CodeModel::Small ||
 1214   if (getTargetMachine().getCodeModel() == CodeModel::Small) {
lib/Target/Lanai/LanaiTargetMachine.cpp
   66       Subtarget(TT, Cpu, FeatureString, *this, Options, getCodeModel(),
lib/Target/Lanai/LanaiTargetObjectFile.cpp
   52   if (GO == nullptr) return TM.getCodeModel() == CodeModel::Small;
   79   if (!GVA) return TM.getCodeModel() == CodeModel::Small;
   87   if (TM.getCodeModel() == CodeModel::Small)
lib/Target/PowerPC/PPCAsmPrinter.cpp
  716           TM.getCodeModel() == CodeModel::Small &&
  763     assert((IsAIX && !IsPPC64 && TM.getCodeModel() == CodeModel::Large) &&
  793     assert(IsAIX && !IsPPC64 && TM.getCodeModel() == CodeModel::Large &&
  843         (MO.isCPI() && TM.getCodeModel() == CodeModel::Large))
  886     if (!MO.isCPI() || TM.getCodeModel() == CodeModel::Large)
 1391     if (TM.getCodeModel() == CodeModel::Large
 1513     if (TM.getCodeModel() != CodeModel::Large) {
lib/Target/PowerPC/PPCFastISel.cpp
 2010   CodeModel::Model CModel = TM.getCodeModel();
 2066   CodeModel::Model CModel = TM.getCodeModel();
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
 5075     const CodeModel::Model CModel = TM.getCodeModel();
lib/Target/PowerPC/PPCISelLowering.cpp
 2757   switch (getTargetMachine().getCodeModel()) {
 2774   switch (getTargetMachine().getCodeModel()) {
 4497   if (CodeModel::Medium == TM.getCodeModel() ||
 4498       CodeModel::Large == TM.getCodeModel())
14602   CodeModel::Model CModel = getTargetMachine().getCodeModel();
lib/Target/PowerPC/PPCSubtarget.cpp
  234   if (TM.getCodeModel() == CodeModel::Large)
lib/Target/RISCV/RISCVISelLowering.cpp
  446   switch (getTargetMachine().getCodeModel()) {
lib/Target/Sparc/SparcAsmPrinter.cpp
  184     switch(TM.getCodeModel()) {
lib/Target/Sparc/SparcISelLowering.cpp
 1972   switch(getTargetMachine().getCodeModel()) {
lib/Target/SystemZ/SystemZISelLowering.cpp
 2827   CodeModel::Model CM = DAG.getTarget().getCodeModel();
lib/Target/TargetLoweringObjectFile.cpp
   46                        TM.getCodeModel() == CodeModel::Large);
lib/Target/X86/X86FastISel.cpp
  720     if (TM.getCodeModel() != CodeModel::Small)
 1052     if (TM.getCodeModel() != CodeModel::Small)
 3739   CodeModel::Model CM = TM.getCodeModel();
 3784   else if (Subtarget->is64Bit() && TM.getCodeModel() == CodeModel::Small)
 3814   if (TM.getCodeModel() != CodeModel::Small)
lib/Target/X86/X86FrameLowering.cpp
  766   bool IsLargeCodeModel = MF.getTarget().getCodeModel() == CodeModel::Large;
  786   if (Is64Bit && MF.getTarget().getCodeModel() == CodeModel::Large) {
 2482   if (Is64Bit && MF.getTarget().getCodeModel() == CodeModel::Large) {
lib/Target/X86/X86ISelDAGToDAG.cpp
 1356   CodeModel::Model M = TM.getCodeModel();
 1422   CodeModel::Model M = TM.getCodeModel();
 1491   switch (TM.getCodeModel()) {
 2384     return TM.getCodeModel() == CodeModel::Small;
 2389     return TM.getCodeModel() == CodeModel::Small;
lib/Target/X86/X86ISelLowering.cpp
 2282     return (getTargetMachine().getCodeModel() == CodeModel::Kernel) ? 256 : 257;
 3993   if (DAG.getTarget().getCodeModel() == CodeModel::Large) {
17768   CodeModel::Model M = getTargetMachine().getCodeModel();
17883   CodeModel::Model M = DAG.getTarget().getCodeModel();
28906   CodeModel::Model M = getTargetMachine().getCodeModel();
30534   bool UseImmLabel = (MF->getTarget().getCodeModel() == CodeModel::Small) &&
30898   bool UseImmLabel = (MF->getTarget().getCodeModel() == CodeModel::Small) &&
lib/Target/X86/X86InstrInfo.cpp
 5298     if (MF.getTarget().getCodeModel() != CodeModel::Small &&
 5299         MF.getTarget().getCodeModel() != CodeModel::Kernel)
 6017           MF->getTarget().getCodeModel() == CodeModel::Medium ||
 6018           MF->getTarget().getCodeModel() == CodeModel::Large) &&
 7744       if (STI.is64Bit() && (TM->getCodeModel() == CodeModel::Small ||
 7745                             TM->getCodeModel() == CodeModel::Kernel))
 7773         if (TM->getCodeModel() == CodeModel::Medium) {
 7782         } else if (TM->getCodeModel() == CodeModel::Large) {
lib/Target/X86/X86InstructionSelector.cpp
  598   if (TM.getCodeModel() != CodeModel::Small)
 1430   CodeModel::Model CM = TM.getCodeModel();
 1475     } else if (STI.is64Bit() && TM.getCodeModel() == CodeModel::Small)
lib/Target/X86/X86SpeculativeLoadHardening.cpp
 1106       if (MF.getTarget().getCodeModel() == CodeModel::Small &&
 1145     if (MF.getTarget().getCodeModel() == CodeModel::Small &&
 2497     if (MF.getTarget().getCodeModel() == CodeModel::Small &&
 2535   if (MF.getTarget().getCodeModel() == CodeModel::Small &&
lib/Target/X86/X86Subtarget.cpp
   78       switch (TM.getCodeModel()) {
  125   if (TM.getCodeModel() == CodeModel::Large && !isPositionIndependent())
  157     if (TM.getCodeModel() == CodeModel::Large)
lib/Target/XCore/XCoreISelLowering.cpp
  265   if (XTL.getTargetMachine().getCodeModel() == CodeModel::Small)
lib/Target/XCore/XCoreTargetObjectFile.cpp
  122   if (TM.getCodeModel() == CodeModel::Small || !ObjType->isSized() ||