Home
last modified time | relevance | path

Searched refs:CPU (Results 1 – 25 of 1044) sorted by relevance

12345678910>>...42

/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/builtins/cpu_model/
H A Dx86.c323 CPU = "core2"; in getIntelProcessorTypeAndSubtype()
332 CPU = "penryn"; in getIntelProcessorTypeAndSubtype()
572 CPU = "knl"; in getIntelProcessorTypeAndSubtype()
577 CPU = "knm"; in getIntelProcessorTypeAndSubtype()
589 return CPU; in getIntelProcessorTypeAndSubtype()
618 CPU = "btver1"; in getAMDProcessorTypeAndSubtype()
622 CPU = "bdver1"; in getAMDProcessorTypeAndSubtype()
645 CPU = "btver2"; in getAMDProcessorTypeAndSubtype()
649 CPU = "znver1"; in getAMDProcessorTypeAndSubtype()
678 CPU = "znver3"; in getAMDProcessorTypeAndSubtype()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/TargetParser/
H A DHost.cpp688 StringRef CPU; in getIntelProcessorTypeAndSubtype() local
692 CPU = "i386"; in getIntelProcessorTypeAndSubtype()
695 CPU = "i486"; in getIntelProcessorTypeAndSubtype()
1043 return CPU; in getIntelProcessorTypeAndSubtype()
1054 StringRef CPU; in getAMDProcessorTypeAndSubtype() local
1058 CPU = "i486"; in getAMDProcessorTypeAndSubtype()
1065 CPU = "k6"; in getAMDProcessorTypeAndSubtype()
1091 CPU = "k8"; in getAMDProcessorTypeAndSubtype()
1199 return CPU; in getAMDProcessorTypeAndSubtype()
1359 StringRef CPU; in getHostCPUName() local
[all …]
H A DRISCVTargetParser.cpp41 static const CPUInfo *getCPUInfoByName(StringRef CPU) { in getCPUInfoByName() argument
43 if (C.Name == CPU) in getCPUInfoByName()
48 bool hasFastUnalignedAccess(StringRef CPU) { in hasFastUnalignedAccess() argument
49 const CPUInfo *Info = getCPUInfoByName(CPU); in hasFastUnalignedAccess()
53 bool parseCPU(StringRef CPU, bool IsRV64) { in parseCPU() argument
54 const CPUInfo *Info = getCPUInfoByName(CPU); in parseCPU()
75 StringRef getMArchFromMcpu(StringRef CPU) { in getMArchFromMcpu() argument
76 const CPUInfo *Info = getCPUInfoByName(CPU); in getMArchFromMcpu()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/BPF/
H A DBPFSubtarget.cpp49 initSubtargetFeatures(CPU, FS); in initializeSubtargetDependencies()
50 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in initializeSubtargetDependencies()
68 if (CPU == "probe") in initSubtargetFeatures()
69 CPU = sys::detail::getHostCPUNameForBPF(); in initSubtargetFeatures()
70 if (CPU == "generic" || CPU == "v1") in initSubtargetFeatures()
72 if (CPU == "v2") { in initSubtargetFeatures()
76 if (CPU == "v3") { in initSubtargetFeatures()
82 if (CPU == "v4") { in initSubtargetFeatures()
96 BPFSubtarget::BPFSubtarget(const Triple &TT, const std::string &CPU, in BPFSubtarget() argument
98 : BPFGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), in BPFSubtarget()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRSubtarget.cpp30 AVRSubtarget::AVRSubtarget(const Triple &TT, const std::string &CPU, in AVRSubtarget() argument
32 : AVRGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), InstrInfo(*this), in AVRSubtarget()
33 TLInfo(TM, initializeSubtargetDependencies(CPU, FS, TM)) { in AVRSubtarget()
35 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in AVRSubtarget()
39 AVRSubtarget::initializeSubtargetDependencies(StringRef CPU, StringRef FS, in initializeSubtargetDependencies() argument
42 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in initializeSubtargetDependencies()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblySubtarget.cpp28 WebAssemblySubtarget::initializeSubtargetDependencies(StringRef CPU, in initializeSubtargetDependencies() argument
33 if (CPU.empty()) in initializeSubtargetDependencies()
34 CPU = "generic"; in initializeSubtargetDependencies()
36 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in initializeSubtargetDependencies()
41 const std::string &CPU, in WebAssemblySubtarget() argument
44 : WebAssemblyGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), in WebAssemblySubtarget()
45 TargetTriple(TT), InstrInfo(initializeSubtargetDependencies(CPU, FS)), in WebAssemblySubtarget()
/freebsd-14.2/contrib/llvm-project/llvm/lib/MC/
H A DMCSubtargetInfo.cpp112 for (auto &CPU : CPUTable) in Help() local
114 CPU.Key); in Help()
140 for (auto &CPU : CPUTable) in cpuHelp() local
141 errs() << "\t" << CPU.Key << "\n"; in cpuHelp()
165 if (CPU == "help") in getFeatures()
169 else if (!CPU.empty()) { in getFeatures()
170 const SubtargetSubTypeKV *CPUEntry = Find(CPU, ProcDesc); in getFeatures()
189 } else if (TuneCPU != CPU) { in getFeatures()
238 InitMCProcessorInfo(CPU, TuneCPU, FS); in MCSubtargetInfo()
315 const SubtargetSubTypeKV *CPUEntry = Find(CPU, ProcDesc); in getSchedModelForCPU()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Basic/Targets/
H A DHexagon.cpp30 if (CPU == "hexagonv5") { in getTargetDefines()
37 } else if (CPU == "hexagonv55") { in getTargetDefines()
42 } else if (CPU == "hexagonv60") { in getTargetDefines()
48 } else if (CPU == "hexagonv62") { in getTargetDefines()
52 } else if (CPU == "hexagonv65") { in getTargetDefines()
56 } else if (CPU == "hexagonv66") { in getTargetDefines()
60 } else if (CPU == "hexagonv67") { in getTargetDefines()
66 } else if (CPU == "hexagonv68") { in getTargetDefines()
69 } else if (CPU == "hexagonv69") { in getTargetDefines()
72 } else if (CPU == "hexagonv71") { in getTargetDefines()
[all …]
H A DMips.cpp32 return llvm::StringSwitch<bool>(CPU) in processorSupportsGPR64()
193 Builder.defineMacro("_MIPS_ARCH", "\"" + CPU + "\""); in getTargetDefines()
194 if (CPU == "octeon+") in getTargetDefines()
197 Builder.defineMacro("_MIPS_ARCH_" + StringRef(CPU).upper()); in getTargetDefines()
199 if (StringRef(CPU).starts_with("octeon")) in getTargetDefines()
202 if (CPU != "mips1") { in getTargetDefines()
248 Diags.Report(diag::err_target_unsupported_abi) << ABI << CPU; in validateTarget()
261 Diags.Report(diag::err_opt_not_valid_with_opt) << "-mfpxx" << CPU; in validateTarget()
265 if (FPMode != FP64 && FPMode != FPXX && (CPU == "mips32r6" || in validateTarget()
266 CPU == "mips64r6")) { in validateTarget()
[all …]
H A DMips.h43 std::string CPU; variable
78 CPU = ABI == "o32" ? "mips32r2" : "mips64r2"; in MipsTargetInfo()
85 return CPU == "mips32r6" || CPU == "mips64r6"; in isIEEE754_2008Default()
170 CPU = Name; in setCPU()
174 const std::string &getCPU() const { return CPU; } in getCPU()
177 StringRef CPU, in initFeatureMap() argument
179 if (CPU.empty()) in initFeatureMap()
180 CPU = getCPU(); in initFeatureMap()
181 if (CPU == "octeon") in initFeatureMap()
183 else if (CPU == "octeon+") in initFeatureMap()
[all …]
H A DBPF.cpp33 std::string CPU = getTargetOpts().CPU; in getTargetDefines() local
34 if (CPU == "probe") { in getTargetDefines()
38 if (CPU.empty() || CPU == "generic" || CPU == "v1") { in getTargetDefines()
43 std::string CpuVerNumStr = CPU.substr(1); in getTargetDefines()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchSubtarget.cpp28 const Triple &TT, StringRef CPU, StringRef TuneCPU, StringRef FS, in initializeSubtargetDependencies() argument
31 if (CPU.empty() || CPU == "generic") in initializeSubtargetDependencies()
32 CPU = Is64Bit ? "generic-la64" : "generic-la32"; in initializeSubtargetDependencies()
35 TuneCPU = CPU; in initializeSubtargetDependencies()
37 ParseSubtargetFeatures(CPU, TuneCPU, FS); in initializeSubtargetDependencies()
84 LoongArchSubtarget::LoongArchSubtarget(const Triple &TT, StringRef CPU, in LoongArchSubtarget() argument
88 : LoongArchGenSubtargetInfo(TT, CPU, TuneCPU, FS), in LoongArchSubtarget()
90 initializeSubtargetDependencies(TT, CPU, TuneCPU, FS, ABIName)), in LoongArchSubtarget()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsMCTargetDesc.cpp49 StringRef MIPS_MC::selectMipsCPU(const Triple &TT, StringRef CPU) { in selectMipsCPU() argument
50 if (CPU.empty() || CPU == "generic") { in selectMipsCPU()
53 CPU = "mips32r6"; in selectMipsCPU()
55 CPU = "mips64r6"; in selectMipsCPU()
58 CPU = "mips32"; in selectMipsCPU()
60 CPU = "mips64"; in selectMipsCPU()
63 return CPU; in selectMipsCPU()
79 StringRef CPU, StringRef FS) { in createMipsMCSubtargetInfo() argument
80 CPU = MIPS_MC::selectMipsCPU(TT, CPU); in createMipsMCSubtargetInfo()
81 return createMipsMCSubtargetInfoImpl(TT, CPU, /*TuneCPU*/ CPU, FS); in createMipsMCSubtargetInfo()
/freebsd-14.2/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_fdr_controller.h148 if (UNLIKELY(LatestCPU != CPU || LatestTSC == 0)) { in recordPreamble()
152 LatestCPU = CPU; in recordPreamble()
161 DCHECK_EQ(LatestCPU, CPU); in recordPreamble()
182 uint16_t CPU) XRAY_NEVER_INSTRUMENT { in rewindRecords() argument
245 uint16_t CPU) XRAY_NEVER_INSTRUMENT { in functionEnter() argument
250 auto PreambleStatus = recordPreamble(TSC, CPU); in functionEnter()
276 auto PreambleStatus = recordPreamble(TSC, CPU); in functionTailExit()
283 return rewindRecords(FuncId, TSC, CPU); in functionTailExit()
311 uint16_t CPU) XRAY_NEVER_INSTRUMENT { in functionExit() argument
316 auto PreambleStatus = recordPreamble(TSC, CPU); in functionExit()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/
H A DM68k.cpp34 std::string CPU = std::string(llvm::sys::getHostCPUName()); in getM68kTargetCPU() local
35 if (!CPU.empty() && CPU != "generic") in getM68kTargetCPU()
36 return CPU; in getM68kTargetCPU()
79 std::string CPU = m68k::getM68kTargetCPU(Args); in addFloatABIFeatures() local
81 if ((A && (CPU == "M68000" || CPU == "M68010")) || in addFloatABIFeatures()
83 CPU == "M68020") in addFloatABIFeatures()
85 else if (CPU == "M68030" || CPU == "M68040" || CPU == "M68060") in addFloatABIFeatures()
H A DAArch64.cpp34 std::string CPU; in getAArch64TargetCPU() local
41 CPU = llvm::AArch64::resolveCPUAlias(CPU); in getAArch64TargetCPU()
44 if (CPU == "native") in getAArch64TargetCPU()
47 if (CPU.size()) in getAArch64TargetCPU()
48 return CPU; in getAArch64TargetCPU()
96 CPU = Split.first; in DecodeAArch64Mcpu()
98 if (CPU == "native") in DecodeAArch64Mcpu()
101 if (CPU == "generic") { in DecodeAArch64Mcpu()
146 StringRef CPU; in getAArch64ArchFeaturesFromMcpu() local
180 StringRef CPU; in getAArch64MicroArchFeaturesFromMcpu() local
[all …]
H A DRISCV.cpp86 StringRef CPU = A->getValue(); in getRISCVTargetFeatures() local
87 if (CPU == "native") in getRISCVTargetFeatures()
88 CPU = llvm::sys::getHostCPUName(); in getRISCVTargetFeatures()
278 StringRef CPU = A->getValue(); in getRISCVArch() local
279 if (CPU == "native") in getRISCVArch()
332 std::string CPU; in getRISCVTargetCPU() local
335 CPU = A->getValue(); in getRISCVTargetCPU()
338 if (CPU == "native") in getRISCVTargetCPU()
339 CPU = llvm::sys::getHostCPUName(); in getRISCVTargetCPU()
341 if (!CPU.empty()) in getRISCVTargetCPU()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/VE/
H A DVESubtarget.cpp28 VESubtarget &VESubtarget::initializeSubtargetDependencies(StringRef CPU, in initializeSubtargetDependencies() argument
34 std::string CPUName = std::string(CPU); in initializeSubtargetDependencies()
39 ParseSubtargetFeatures(CPUName, /*TuneCPU=*/CPU, FS); in initializeSubtargetDependencies()
44 VESubtarget::VESubtarget(const Triple &TT, const std::string &CPU, in VESubtarget() argument
46 : VEGenSubtargetInfo(TT, CPU, /*TuneCPU=*/CPU, FS), TargetTriple(TT), in VESubtarget()
47 InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this), in VESubtarget()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kSubtarget.cpp42 static StringRef selectM68kCPU(Triple TT, StringRef CPU) { in selectM68kCPU() argument
43 if (CPU.empty() || CPU == "generic") { in selectM68kCPU()
44 CPU = "M68000"; in selectM68kCPU()
46 return CPU; in selectM68kCPU()
51 M68kSubtarget::M68kSubtarget(const Triple &TT, StringRef CPU, StringRef FS, in M68kSubtarget() argument
53 : M68kGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), TM(TM), TSInfo(), in M68kSubtarget()
54 InstrInfo(initializeSubtargetDependencies(CPU, TT, FS, TM)), in M68kSubtarget()
88 StringRef CPU, Triple TT, StringRef FS, const M68kTargetMachine &TM) { in initializeSubtargetDependencies() argument
89 std::string CPUName = selectM68kCPU(TT, CPU).str(); in initializeSubtargetDependencies()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXSubtarget.cpp32 NVPTXSubtarget &NVPTXSubtarget::initializeSubtargetDependencies(StringRef CPU, in initializeSubtargetDependencies() argument
35 TargetName = std::string(CPU.empty() ? "sm_30" : CPU); in initializeSubtargetDependencies()
52 NVPTXSubtarget::NVPTXSubtarget(const Triple &TT, const std::string &CPU, in NVPTXSubtarget() argument
55 : NVPTXGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), PTXVersion(0), in NVPTXSubtarget()
57 TLInfo(TM, initializeSubtargetDependencies(CPU, FS)) {} in NVPTXSubtarget()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZSubtarget.cpp32 StringRef CPU, StringRef TuneCPU, StringRef FS) { in initializeSubtargetDependencies() argument
33 if (CPU.empty()) in initializeSubtargetDependencies()
34 CPU = "generic"; in initializeSubtargetDependencies()
36 TuneCPU = CPU; in initializeSubtargetDependencies()
38 ParseSubtargetFeatures(CPU, TuneCPU, FS); in initializeSubtargetDependencies()
66 SystemZSubtarget::SystemZSubtarget(const Triple &TT, const std::string &CPU, in SystemZSubtarget() argument
70 : SystemZGenSubtargetInfo(TT, CPU, TuneCPU, FS), TargetTriple(TT), in SystemZSubtarget()
72 InstrInfo(initializeSubtargetDependencies(CPU, TuneCPU, FS)), in SystemZSubtarget()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsTargetMachine.cpp73 static std::string computeDataLayout(const Triple &TT, StringRef CPU, in computeDataLayout() argument
122 StringRef CPU, StringRef FS, in MipsTargetMachine() argument
129 CPU, FS, Options, getEffectiveRelocModel(JIT, RM), in MipsTargetMachine()
132 ABI(MipsABIInfo::computeTargetABI(TT, CPU, Options.MCOptions)), in MipsTargetMachine()
134 DefaultSubtarget(TT, CPU, FS, isLittle, *this, std::nullopt), in MipsTargetMachine()
151 StringRef CPU, StringRef FS, in MipsebTargetMachine() argument
161 StringRef CPU, StringRef FS, in MipselTargetMachine() argument
166 : MipsTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, true) {} in MipselTargetMachine()
173 std::string CPU = in getSubtargetImpl() local
199 auto &I = SubtargetMap[CPU + FS]; in getSubtargetImpl()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcTargetMachine.cpp99 StringRef CPU, StringRef FS, in SparcTargetMachine() argument
122 std::string CPU = in getSubtargetImpl() local
125 TuneAttr.isValid() ? TuneAttr.getValueAsString().str() : CPU; in getSubtargetImpl()
137 auto &I = SubtargetMap[CPU + FS]; in getSubtargetImpl()
143 I = std::make_unique<SparcSubtarget>(CPU, TuneCPU, FS, *this, in getSubtargetImpl()
201 StringRef CPU, StringRef FS, in SparcV8TargetMachine() argument
206 : SparcTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, false) {} in SparcV8TargetMachine()
211 StringRef CPU, StringRef FS, in SparcV9TargetMachine() argument
216 : SparcTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, true) {} in SparcV9TargetMachine()
221 StringRef CPU, StringRef FS, in SparcelTargetMachine() argument
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430Subtarget.cpp42 MSP430Subtarget::initializeSubtargetDependencies(StringRef CPU, StringRef FS) { in initializeSubtargetDependencies() argument
46 StringRef CPUName = CPU; in initializeSubtargetDependencies()
58 MSP430Subtarget::MSP430Subtarget(const Triple &TT, const std::string &CPU, in MSP430Subtarget() argument
60 : MSP430GenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), in MSP430Subtarget()
61 InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this), in MSP430Subtarget()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVSubtarget.cpp71 RISCVSubtarget::initializeSubtargetDependencies(const Triple &TT, StringRef CPU, in initializeSubtargetDependencies() argument
76 if (CPU.empty() || CPU == "generic") in initializeSubtargetDependencies()
77 CPU = Is64Bit ? "generic-rv64" : "generic-rv32"; in initializeSubtargetDependencies()
80 TuneCPU = CPU; in initializeSubtargetDependencies()
88 ParseSubtargetFeatures(CPU, TuneCPU, FS); in initializeSubtargetDependencies()
94 RISCVSubtarget::RISCVSubtarget(const Triple &TT, StringRef CPU, in RISCVSubtarget() argument
99 : RISCVGenSubtargetInfo(TT, CPU, TuneCPU, FS), in RISCVSubtarget()
102 initializeSubtargetDependencies(TT, CPU, TuneCPU, FS, ABIName)), in RISCVSubtarget()

12345678910>>...42