| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/BPF/ |
| H A D | BPFSubtarget.cpp | 31 initSubtargetFeatures(CPU, FS); in initializeSubtargetDependencies() 32 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in initializeSubtargetDependencies() 43 void BPFSubtarget::initSubtargetFeatures(StringRef CPU, StringRef FS) { in initSubtargetFeatures() argument 44 if (CPU == "probe") in initSubtargetFeatures() 45 CPU = sys::detail::getHostCPUNameForBPF(); in initSubtargetFeatures() 46 if (CPU == "generic" || CPU == "v1") in initSubtargetFeatures() 48 if (CPU == "v2") { in initSubtargetFeatures() 52 if (CPU == "v3") { in initSubtargetFeatures() 60 BPFSubtarget::BPFSubtarget(const Triple &TT, const std::string &CPU, in BPFSubtarget() argument 62 : BPFGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), InstrInfo(), in BPFSubtarget() [all …]
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/builtins/ |
| H A D | cpu_model.c | 312 CPU = "core2"; in getIntelProcessorTypeAndSubtype() 321 CPU = "penryn"; in getIntelProcessorTypeAndSubtype() 475 CPU = "knl"; in getIntelProcessorTypeAndSubtype() 480 CPU = "knm"; in getIntelProcessorTypeAndSubtype() 492 return CPU; in getIntelProcessorTypeAndSubtype() 520 CPU = "btver1"; in getAMDProcessorTypeAndSubtype() 524 CPU = "bdver1"; in getAMDProcessorTypeAndSubtype() 547 CPU = "btver2"; in getAMDProcessorTypeAndSubtype() 551 CPU = "znver1"; in getAMDProcessorTypeAndSubtype() 564 CPU = "znver3"; in getAMDProcessorTypeAndSubtype() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/ |
| H A D | Host.cpp | 637 StringRef CPU; in getIntelProcessorTypeAndSubtype() local 641 CPU = "i386"; in getIntelProcessorTypeAndSubtype() 644 CPU = "i486"; in getIntelProcessorTypeAndSubtype() 907 return CPU; in getIntelProcessorTypeAndSubtype() 918 StringRef CPU; in getAMDProcessorTypeAndSubtype() local 922 CPU = "i486"; in getAMDProcessorTypeAndSubtype() 929 CPU = "k6"; in getAMDProcessorTypeAndSubtype() 955 CPU = "k8"; in getAMDProcessorTypeAndSubtype() 1028 return CPU; in getAMDProcessorTypeAndSubtype() 1181 StringRef CPU; in getHostCPUName() local [all …]
|
| H A D | AArch64TargetParser.cpp | 28 if (CPU == "generic") in getDefaultFPU() 31 return StringSwitch<unsigned>(CPU) in getDefaultFPU() 39 if (CPU == "generic") in getDefaultExtensions() 42 return StringSwitch<uint64_t>(CPU) in getDefaultExtensions() 51 AArch64::ArchKind AArch64::getCPUArchKind(StringRef CPU) { in getCPUArchKind() argument 52 if (CPU == "generic") in getCPUArchKind() 55 return StringSwitch<AArch64::ArchKind>(CPU) in getCPUArchKind() 185 for (const auto &CPU : AArch64CPUNames) in getDefaultCPU() local 186 if (CPU.ArchID == AK && CPU.Default) in getDefaultCPU() 187 return CPU.getName(); in getDefaultCPU() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblySubtarget.cpp | 28 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() 46 InstrInfo(initializeSubtargetDependencies(CPU, FS)), TSInfo(), in WebAssemblySubtarget()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/MC/ |
| H A D | MCSubtargetInfo.cpp | 111 for (auto &CPU : CPUTable) in Help() local 113 CPU.Key); in Help() 139 for (auto &CPU : CPUTable) in cpuHelp() local 140 errs() << "\t" << CPU.Key << "\n"; in cpuHelp() 164 if (CPU == "help") in getFeatures() 168 else if (!CPU.empty()) { in getFeatures() 169 const SubtargetSubTypeKV *CPUEntry = Find(CPU, ProcDesc); in getFeatures() 188 } else if (TuneCPU != CPU) { in getFeatures() 237 InitMCProcessorInfo(CPU, TuneCPU, FS); in MCSubtargetInfo() 314 const SubtargetSubTypeKV *CPUEntry = Find(CPU, ProcDesc); in getSchedModelForCPU() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/ |
| H A D | AVRSubtarget.cpp | 30 AVRSubtarget::AVRSubtarget(const Triple &TT, const std::string &CPU, in AVRSubtarget() argument 32 : AVRGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), ELFArch(0), in AVRSubtarget() 44 TLInfo(TM, initializeSubtargetDependencies(CPU, FS, TM)), TSInfo() { in AVRSubtarget() 46 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in AVRSubtarget() 50 AVRSubtarget::initializeSubtargetDependencies(StringRef CPU, StringRef FS, in initializeSubtargetDependencies() argument 53 ParseSubtargetFeatures(CPU, /*TuneCPU*/ CPU, FS); in initializeSubtargetDependencies()
|
| H A D | AVRTargetMachine.cpp | 31 static StringRef getCPU(StringRef CPU) { in getCPU() argument 32 if (CPU.empty() || CPU == "generic") { in getCPU() 36 return CPU; in getCPU() 44 StringRef CPU, StringRef FS, in AVRTargetMachine() argument 49 : LLVMTargetMachine(T, AVRDataLayout, TT, getCPU(CPU), FS, Options, in AVRTargetMachine() 52 SubTarget(TT, std::string(getCPU(CPU)), std::string(FS), *this) { in AVRTargetMachine()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
| H A D | SystemZTargetMachine.cpp | 38 static bool UsesVectorABI(StringRef CPU, StringRef FS) { in UsesVectorABI() argument 44 if (CPU.empty() || CPU == "generic" || in UsesVectorABI() 45 CPU == "z10" || CPU == "z196" || CPU == "zEC12" || in UsesVectorABI() 46 CPU == "arch8" || CPU == "arch9" || CPU == "arch10") in UsesVectorABI() 65 static std::string computeDataLayout(const Triple &TT, StringRef CPU, in computeDataLayout() argument 67 bool VectorABI = UsesVectorABI(CPU, FS); in computeDataLayout() 162 StringRef CPU, StringRef FS, in SystemZTargetMachine() argument 168 T, computeDataLayout(TT, CPU, FS), TT, CPU, FS, Options, in SystemZTargetMachine() 183 std::string CPU = in getSubtargetImpl() local 196 auto &I = SubtargetMap[CPU + FS]; in getSubtargetImpl() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/ |
| H A D | MipsMCTargetDesc.cpp | 48 StringRef MIPS_MC::selectMipsCPU(const Triple &TT, StringRef CPU) { in selectMipsCPU() argument 49 if (CPU.empty() || CPU == "generic") { in selectMipsCPU() 52 CPU = "mips32r6"; in selectMipsCPU() 54 CPU = "mips64r6"; in selectMipsCPU() 57 CPU = "mips32"; in selectMipsCPU() 59 CPU = "mips64"; in selectMipsCPU() 62 return CPU; in selectMipsCPU() 78 StringRef CPU, StringRef FS) { in createMipsMCSubtargetInfo() argument 79 CPU = MIPS_MC::selectMipsCPU(TT, CPU); in createMipsMCSubtargetInfo() 80 return createMipsMCSubtargetInfoImpl(TT, CPU, /*TuneCPU*/ CPU, FS); in createMipsMCSubtargetInfo()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/xray/ |
| H A D | xray_fdr_controller.h | 148 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-13.1/contrib/llvm-project/llvm/lib/Target/VE/ |
| H A D | VESubtarget.cpp | 28 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-13.1/contrib/llvm-project/llvm/lib/Target/M68k/ |
| H A D | M68kSubtarget.cpp | 42 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), in M68kSubtarget() 55 InstrInfo(initializeSubtargetDependencies(CPU, TT, FS, TM)), in M68kSubtarget() 91 StringRef CPU, Triple TT, StringRef FS, const M68kTargetMachine &TM) { in initializeSubtargetDependencies() argument 92 std::string CPUName = selectM68kCPU(TT, CPU).str(); in initializeSubtargetDependencies()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/ |
| H A D | MipsTargetMachine.cpp | 63 static std::string computeDataLayout(const Triple &TT, StringRef CPU, in computeDataLayout() argument 112 StringRef CPU, StringRef FS, in MipsTargetMachine() argument 119 CPU, FS, Options, getEffectiveRelocModel(JIT, RM), in MipsTargetMachine() 122 ABI(MipsABIInfo::computeTargetABI(TT, CPU, Options.MCOptions)), in MipsTargetMachine() 140 StringRef CPU, StringRef FS, in MipsebTargetMachine() argument 145 : MipsTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, false) {} in MipsebTargetMachine() 150 StringRef CPU, StringRef FS, in MipselTargetMachine() argument 155 : MipsTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, true) {} in MipselTargetMachine() 162 std::string CPU = in getSubtargetImpl() local 188 auto &I = SubtargetMap[CPU + FS]; in getSubtargetImpl() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXSubtarget.cpp | 33 NVPTXSubtarget &NVPTXSubtarget::initializeSubtargetDependencies(StringRef CPU, in initializeSubtargetDependencies() argument 36 TargetName = std::string(CPU.empty() ? "sm_20" : CPU); in initializeSubtargetDependencies() 48 NVPTXSubtarget::NVPTXSubtarget(const Triple &TT, const std::string &CPU, in NVPTXSubtarget() argument 51 : NVPTXGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), PTXVersion(0), in NVPTXSubtarget() 53 TLInfo(TM, initializeSubtargetDependencies(CPU, FS)), FrameLowering() {} in NVPTXSubtarget()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | Hexagon.cpp | 32 if (CPU == "hexagonv5") { in getTargetDefines() 39 } else if (CPU == "hexagonv55") { in getTargetDefines() 44 } else if (CPU == "hexagonv60") { in getTargetDefines() 50 } else if (CPU == "hexagonv62") { in getTargetDefines() 54 } else if (CPU == "hexagonv65") { in getTargetDefines() 58 } else if (CPU == "hexagonv66") { in getTargetDefines() 62 } else if (CPU == "hexagonv67") { in getTargetDefines() 65 } else if (CPU == "hexagonv67t") { in getTargetDefines() 68 } else if (CPU == "hexagonv68") { in getTargetDefines() 101 StringRef CPUFeature = CPU; in initFeatureMap() [all …]
|
| H A D | Mips.cpp | 32 return llvm::StringSwitch<bool>(CPU) in processorSupportsGPR64() 189 Builder.defineMacro("_MIPS_ARCH", "\"" + CPU + "\""); in getTargetDefines() 190 if (CPU == "octeon+") in getTargetDefines() 193 Builder.defineMacro("_MIPS_ARCH_" + StringRef(CPU).upper()); in getTargetDefines() 195 if (StringRef(CPU).startswith("octeon")) in getTargetDefines() 244 Diags.Report(diag::err_target_unsupported_abi) << ABI << CPU; in validateTarget() 250 Diags.Report(diag::err_target_unsupported_abi) << ABI << CPU; in validateTarget() 281 Diags.Report(diag::err_opt_not_valid_with_opt) << "-mfpxx" << CPU; in validateTarget() 285 if (FPMode != FP64 && FPMode != FPXX && (CPU == "mips32r6" || in validateTarget() 286 CPU == "mips64r6")) { in validateTarget() [all …]
|
| H A D | Mips.h | 44 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 …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/ |
| H A D | X86.cpp | 26 StringRef CPU = A->getValue(); in getX86TargetCPU() local 27 if (CPU != "native") in getX86TargetCPU() 28 return std::string(CPU); in getX86TargetCPU() 35 CPU = llvm::sys::getHostCPUName(); in getX86TargetCPU() 36 if (!CPU.empty() && CPU != "generic") in getX86TargetCPU() 37 return std::string(CPU); in getX86TargetCPU() 43 StringRef CPU; in getX86TargetCPU() local 45 CPU = llvm::StringSwitch<StringRef>(Arch) in getX86TargetCPU() 52 CPU = llvm::StringSwitch<StringRef>(Arch) in getX86TargetCPU() 59 if (!CPU.empty()) { in getX86TargetCPU() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Sparc/ |
| H A D | SparcTargetMachine.cpp | 91 const Target &T, const Triple &TT, StringRef CPU, StringRef FS, in SparcTargetMachine() argument 100 Subtarget(TT, std::string(CPU), std::string(FS), *this, is64bit), in SparcTargetMachine() 112 std::string CPU = in getSubtargetImpl() local 125 auto &I = SubtargetMap[CPU + FS]; in getSubtargetImpl() 131 I = std::make_unique<SparcSubtarget>(TargetTriple, CPU, FS, *this, in getSubtargetImpl() 188 StringRef CPU, StringRef FS, in SparcV8TargetMachine() argument 193 : SparcTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, false) {} in SparcV8TargetMachine() 198 StringRef CPU, StringRef FS, in SparcV9TargetMachine() argument 203 : SparcTargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, JIT, true) {} in SparcV9TargetMachine() 208 StringRef CPU, StringRef FS, in SparcelTargetMachine() argument [all …]
|
| H A D | SparcSubtarget.cpp | 28 SparcSubtarget &SparcSubtarget::initializeSubtargetDependencies(StringRef CPU, in initializeSubtargetDependencies() argument 53 std::string CPUName = std::string(CPU); in initializeSubtargetDependencies() 67 SparcSubtarget::SparcSubtarget(const Triple &TT, const std::string &CPU, in SparcSubtarget() argument 70 : SparcGenSubtargetInfo(TT, CPU, /*TuneCPU*/ CPU, FS), TargetTriple(TT), in SparcSubtarget() 71 Is64Bit(is64Bit), InstrInfo(initializeSubtargetDependencies(CPU, FS)), in SparcSubtarget()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVSubtarget.cpp | 51 RISCVSubtarget::initializeSubtargetDependencies(const Triple &TT, StringRef CPU, in initializeSubtargetDependencies() argument 56 if (CPU.empty()) in initializeSubtargetDependencies() 57 CPU = Is64Bit ? "generic-rv64" : "generic-rv32"; in initializeSubtargetDependencies() 58 if (CPU == "generic") in initializeSubtargetDependencies() 63 TuneCPU = CPU; in initializeSubtargetDependencies() 65 ParseSubtargetFeatures(CPU, TuneCPU, FS); in initializeSubtargetDependencies() 76 RISCVSubtarget::RISCVSubtarget(const Triple &TT, StringRef CPU, in RISCVSubtarget() argument 79 : RISCVGenSubtargetInfo(TT, CPU, TuneCPU, FS), in RISCVSubtarget() 81 FrameLowering(initializeSubtargetDependencies(TT, CPU, TuneCPU, FS, ABIName)), in RISCVSubtarget()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Driver/ToolChains/ |
| H A D | AVR.cpp | 317 std::string CPU = getCPUName(Args, Triple); in AVRToolChain() local 319 if (CPU.empty()) { in AVRToolChain() 323 Optional<StringRef> FamilyName = GetMCUFamilyName(CPU); in AVRToolChain() 330 << CPU; in AVRToolChain() 341 std::string SubPath = GetMCUSubPath(CPU); in AVRToolChain() 382 std::string CPU = getCPUName(Args, getToolChain().getTriple()); in ConstructJob() local 383 llvm::Optional<StringRef> FamilyName = GetMCUFamilyName(CPU); in ConstructJob() 384 llvm::Optional<unsigned> SectionAddressData = GetMCUSectionAddressData(CPU); in ConstructJob() 408 << CPU; in ConstructJob() 415 assert(!CPU.empty() && "CPU name must be known in order to link stdlibs"); in ConstructJob() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Target/MSP430/ |
| H A D | MSP430Subtarget.cpp | 42 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), FrameLowering(), in MSP430Subtarget() 61 InstrInfo(initializeSubtargetDependencies(CPU, FS)), TLInfo(TM, *this) {} in MSP430Subtarget()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCSubtargetInfo.h | 77 std::string CPU; // CPU being targeted. variable 96 MCSubtargetInfo(const Triple &TT, StringRef CPU, StringRef TuneCPU, 108 StringRef getCPU() const { return CPU; } in getCPU() 127 void InitMCProcessorInfo(StringRef CPU, StringRef TuneCPU, StringRef FS); 132 void setDefaultFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS); 159 const MCSchedModel &getSchedModelForCPU(StringRef CPU) const; 213 InstrItineraryData getInstrItineraryForCPU(StringRef CPU) const; 227 bool isCPUStringValid(StringRef CPU) const { in isCPUStringValid() argument 228 auto Found = llvm::lower_bound(ProcDesc, CPU); in isCPUStringValid() 229 return Found != ProcDesc.end() && StringRef(Found->Key) == CPU; in isCPUStringValid()
|