Home
last modified time | relevance | path

Searched refs:Arch (Results 1 – 25 of 193) sorted by relevance

12345678

/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/
H A DAVR.cpp27 StringRef Arch; // The __AVR_ARCH__ value. member
352 static bool ArchHasELPM(StringRef Arch) { in ArchHasELPM() argument
353 return llvm::StringSwitch<bool>(Arch) in ArchHasELPM()
359 static bool ArchHasELPMX(StringRef Arch) { in ArchHasELPMX() argument
360 return llvm::StringSwitch<bool>(Arch) in ArchHasELPMX()
366 static bool ArchHasMOVW(StringRef Arch) { in ArchHasMOVW() argument
367 return llvm::StringSwitch<bool>(Arch) in ArchHasMOVW()
373 static bool ArchHasLPMX(StringRef Arch) { in ArchHasLPMX() argument
374 return ArchHasMOVW(Arch); // same architectures in ArchHasLPMX()
377 static bool ArchHasMUL(StringRef Arch) { in ArchHasMUL() argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/
H A DArchitecture.cpp24 #define ARCHINFO(Arch, Type, Subtype, NumBits) \ in getArchitectureFromCpuType() argument
27 return AK_##Arch; in getArchitectureFromCpuType()
36 #define ARCHINFO(Arch, Type, Subtype, NumBits) .Case(#Arch, AK_##Arch) in getArchitectureFromName() argument
42 StringRef getArchitectureName(Architecture Arch) { in getArchitectureName() argument
43 switch (Arch) { in getArchitectureName()
44 #define ARCHINFO(Arch, Type, Subtype, NumBits) \ in getArchitectureName() argument
45 case AK_##Arch: \ in getArchitectureName()
46 return #Arch; in getArchitectureName()
58 std::pair<uint32_t, uint32_t> getCPUTypeFromArchitecture(Architecture Arch) { in getCPUTypeFromArchitecture() argument
59 switch (Arch) { in getCPUTypeFromArchitecture()
[all …]
H A DInterfaceFile.cpp79 return Archs.has(Target_.Arch); in targets()
219 InterfaceFile::remove(Architecture Arch) const { in remove()
220 if (getArchitectures() == Arch) in remove()
222 getArchitectureName(Arch) + "'", in remove()
225 if (!getArchitectures().has(Arch)) { in remove()
228 if (Doc->getArchitectures().has(Arch)) { in remove()
241 IF->addTargets(targets(ArchitectureSet::All().clear(Arch))); in remove()
249 if (It.first.Arch != Arch) in remove()
254 if (Target.Arch != Arch) in remove()
260 if (Target.Arch != Arch) in remove()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/
H A DARMTargetParserCommon.cpp19 StringRef ARM::getArchSynonym(StringRef Arch) { in getArchSynonym() argument
20 return StringSwitch<StringRef>(Arch) in getArchSynonym()
51 .Default(Arch); in getArchSynonym()
54 StringRef ARM::getCanonicalArchName(StringRef Arch) { in getCanonicalArchName() argument
56 StringRef A = Arch; in getCanonicalArchName()
93 return Arch; in getCanonicalArchName()
109 ARM::ISAKind ARM::parseArchISA(StringRef Arch) { in parseArchISA() argument
110 return StringSwitch<ISAKind>(Arch) in parseArchISA()
118 ARM::EndianKind ARM::parseArchEndian(StringRef Arch) { in parseArchEndian() argument
119 if (Arch.starts_with("armeb") || Arch.starts_with("thumbeb") || in parseArchEndian()
[all …]
H A DRISCVISAInfo.cpp481 RISCVISAInfo::parseNormalizedArchString(StringRef Arch) { in parseNormalizedArchString() argument
484 Arch, [](char C) { return isDigit(C) || isLower(C) || C == '_'; })) in parseNormalizedArchString()
489 if (Arch.consume_front("rv32")) in parseNormalizedArchString()
491 else if (Arch.consume_front("rv64")) in parseNormalizedArchString()
494 if (XLen == 0 || Arch.empty() || (Arch[0] != 'i' && Arch[0] != 'e')) in parseNormalizedArchString()
502 while (!Arch.empty()) { in parseNormalizedArchString()
503 if (Arch[0] == '_') { in parseNormalizedArchString()
504 if (Arch.size() == 1 || Arch[1] == '_') in parseNormalizedArchString()
506 Arch = Arch.drop_front(); in parseNormalizedArchString()
509 size_t Idx = Arch.find('_'); in parseNormalizedArchString()
[all …]
H A DLoongArchTargetParser.cpp30 bool LoongArch::isValidArchName(StringRef Arch) { in isValidArchName() argument
32 if (A.Name == Arch) in isValidArchName()
37 bool LoongArch::getArchFeatures(StringRef Arch, in getArchFeatures() argument
40 if (A.Name == Arch) { in getArchFeatures()
48 if (Arch == "la64v1.0" || Arch == "la64v1.1") { in getArchFeatures()
53 if (Arch == "la64v1.1") in getArchFeatures()
H A DAArch64TargetParser.cpp30 static unsigned checkArchVersion(llvm::StringRef Arch) { in checkArchVersion() argument
31 if (Arch.size() >= 2 && Arch[0] == 'v' && std::isdigit(Arch[1])) in checkArchVersion()
32 return (Arch[1] - 48); in checkArchVersion()
41 return &Cpu->Arch; in getArchForCpu()
108 const AArch64::ArchInfo *AArch64::parseArch(StringRef Arch) { in parseArch() argument
109 Arch = llvm::ARM::getCanonicalArchName(Arch); in parseArch()
110 if (checkArchVersion(Arch) < 8) in parseArch()
113 StringRef Syn = llvm::ARM::getArchSynonym(Arch); in parseArch()
272 BaseArch = &CPU.Arch; in addCPUDefaults()
280 void AArch64::ExtensionSet::addArchDefaults(const ArchInfo &Arch) { in addArchDefaults() argument
[all …]
H A DCSKYTargetParser.cpp80 StringRef CSKY::getDefaultCPU(StringRef Arch) { in getDefaultCPU() argument
81 ArchKind AK = parseArch(Arch); in getDefaultCPU()
85 return Arch; in getDefaultCPU()
91 CSKY::ArchKind CSKY::parseArch(StringRef Arch) { in parseArch() argument
93 if (A.getName() == Arch) in parseArch()
118 for (const CpuNames<CSKY::ArchKind> &Arch : CPUNames) { in fillValidCPUArchList() local
119 if (Arch.ArchID != CSKY::ArchKind::INVALID) in fillValidCPUArchList()
120 Values.push_back(Arch.getName()); in fillValidCPUArchList()
H A DARMTargetParser.cpp31 ARM::ArchKind ARM::parseArch(StringRef Arch) { in parseArch() argument
32 Arch = getCanonicalArchName(Arch); in parseArch()
33 StringRef Syn = getArchSynonym(Arch); in parseArch()
42 unsigned ARM::parseArchVersion(StringRef Arch) { in parseArchVersion() argument
43 Arch = getCanonicalArchName(Arch); in parseArchVersion()
44 switch (parseArch(Arch)) { in parseArchVersion()
149 ARM::ProfileKind ARM::parseArchProfile(StringRef Arch) { in parseArchProfile() argument
150 Arch = getCanonicalArchName(Arch); in parseArchProfile()
151 return getProfileKind(parseArch(Arch)); in parseArchProfile()
490 StringRef ARM::getDefaultCPU(StringRef Arch) { in getDefaultCPU() argument
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/TextAPI/
H A DTarget.h31 Target(Architecture Arch, PlatformType Platform,
33 : Arch(Arch), Platform(Platform), MinDeployment(MinDeployment) {} in Arch() function
35 : Arch(mapToArchitecture(Triple)), Platform(mapToPlatformType(Triple)), in Target()
42 Architecture Arch; variable
49 return std::tie(LHS.Arch, LHS.Platform) == std::tie(RHS.Arch, RHS.Platform);
58 return std::tie(LHS.Arch, LHS.Platform) < std::tie(RHS.Arch, RHS.Platform);
62 return LHS.Arch == RHS;
66 return LHS.Arch != RHS;
H A DArchitectureSet.h40 ArchitectureSet(Architecture Arch) : ArchitectureSet() { set(Arch); } in ArchitectureSet() argument
45 void set(Architecture Arch) { in set()
46 if (Arch == AK_unknown) in set()
48 ArchSet |= 1U << static_cast<int>(Arch);
51 ArchitectureSet clear(Architecture Arch) { in has() argument
52 ArchSet &= ~(1U << static_cast<int>(Arch)); in has()
56 bool has(Architecture Arch) const { in contains()
57 return ArchSet & (1U << static_cast<int>(Arch)); in contains()
137 ArchitectureSet &operator|=(const Architecture &Arch) {
43 set(Architecture Arch) set() argument
49 clear(Architecture Arch) clear() argument
[all...]
H A DArchitecture.h28 #define ARCHINFO(Arch, Type, SubType, NumBits) AK_##Arch, argument
41 StringRef getArchitectureName(Architecture Arch);
44 std::pair<uint32_t, uint32_t> getCPUTypeFromArchitecture(Architecture Arch);
52 raw_ostream &operator<<(raw_ostream &OS, Architecture Arch);
/freebsd/usr.bin/clang/lld/
H A DMakefile39 SRCS+= ELF/Arch/AArch64.cpp
40 SRCS+= ELF/Arch/AMDGPU.cpp
41 SRCS+= ELF/Arch/ARM.cpp
42 SRCS+= ELF/Arch/AVR.cpp
43 SRCS+= ELF/Arch/Hexagon.cpp
44 SRCS+= ELF/Arch/LoongArch.cpp
45 SRCS+= ELF/Arch/MSP430.cpp
46 SRCS+= ELF/Arch/Mips.cpp
47 SRCS+= ELF/Arch/MipsArchTree.cpp
48 SRCS+= ELF/Arch/PPC.cpp
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TextAPI/BinaryReader/
H A DDylibReader.cpp64 auto Arch = getArchitectureName(ArchT); in constructTriples() local
71 emplace(Triples, {Arch, "apple", "macos" + OSVersion}); in constructTriples()
76 emplace(Triples, {Arch, "apple", "ios" + OSVersion, "simulator"}); in constructTriples()
78 emplace(Triples, {Arch, "apple", "ios" + OSVersion}); in constructTriples()
83 emplace(Triples, {Arch, "apple", "tvos" + OSVersion, "simulator"}); in constructTriples()
85 emplace(Triples, {Arch, "apple", "tvos" + OSVersion}); in constructTriples()
90 emplace(Triples, {Arch, "apple", "watchos" + OSVersion, "simulator"}); in constructTriples()
92 emplace(Triples, {Arch, "apple", "watchos" + OSVersion}); in constructTriples()
98 emplace(Triples, {Arch, "apple", "macos" + OSVersion}); in constructTriples()
101 emplace(Triples, {Arch, "apple", "ios" + OSVersion}); in constructTriples()
[all …]
/freebsd/contrib/libfido2/windows/
H A Drelease.ps115 foreach ($Arch in $Architectures) { variable
17 ./build.ps1 -Arch ${Arch} -Type ${Type} -Config ${Config}
85 $Arch = $Architectures[$i] variable
87 Package-Dynamic "${OUTPUT}\${Arch}\dynamic" `
89 Package-PDBs "${BUILD}\${Arch}\dynamic" `
91 Package-Tools "${BUILD}\${Arch}\dynamic" `
93 Package-Static "${OUTPUT}\${Arch}\static" `
95 Package-StaticPDBs "${BUILD}\${Arch}\static" `
H A Dbuild.ps113 [string]$Arch = "x64", variable
86 Write-Host "Arch: $Arch" variable
95 New-Item -Type Directory "${BUILD}\${Arch}" -Force
96 New-Item -Type Directory "${BUILD}\${Arch}\${Type}" -Force
103 New-Item -Type Directory "${OUTPUT}\${Arch}" -Force
104 New-Item -Type Directory "${OUTPUT}\${Arch}\${Type}" -force
145 & $CMake ..\..\..\${LIBRESSL} -A "${Arch}" `
163 & $CMake ..\..\..\${LIBCBOR} -A "${Arch}" `
182 & $CMake ..\..\..\${ZLIB} -A "${Arch}" `
[all...]
/freebsd/contrib/llvm-project/llvm/lib/InterfaceStub/
H A DIFSHandler.cpp106 IO.mapOptional("Arch", Target.ArchString); in mapping()
202 Stub->Target.Arch = eMachine; in readIFSFromBuffer()
216 if (Stub.Target.Arch) { in writeIFSToOutputStream()
218 std::string(ELF::convertEMachineToArchName(*Stub.Target.Arch)); in writeIFSToOutputStream()
238 if (Stub.Target.Arch && *Stub.Target.Arch != *OverrideArch) { in overrideIFSTarget()
240 "Supplied Arch conflicts with the text stub", OverrideEC); in overrideIFSTarget()
242 Stub.Target.Arch = *OverrideArch; in overrideIFSTarget()
272 if (Stub.Target.Arch || Stub.Target.BitWidth || Stub.Target.Endianness || in validateIFSTarget()
280 Stub.Target.Arch in validateIFSTarget()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.h64 if (Arch == Triple::aarch64 || Arch == Triple::aarch64_be) in getMaxStubSize()
66 if (Arch == Triple::arm || Arch == Triple::thumb) in getMaxStubSize()
72 else if (Arch == Triple::ppc64 || Arch == Triple::ppc64le) in getMaxStubSize()
74 else if (Arch == Triple::x86_64) in getMaxStubSize()
76 else if (Arch == Triple::systemz) in getMaxStubSize()
83 if (Arch == Triple::systemz) in getStubAlignment()
216 create(Triple::ArchType Arch, RuntimeDyl
[all...]
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/
H A DARMTargetParserCommon.h26 StringRef getArchSynonym(StringRef Arch);
32 StringRef getCanonicalArchName(StringRef Arch);
35 ISAKind parseArchISA(StringRef Arch);
38 EndianKind parseArchEndian(StringRef Arch);
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/
H A DARM.h26 std::string getARMTargetCPU(StringRef CPU, llvm::StringRef Arch,
28 std::string getARMArch(llvm::StringRef Arch, const llvm::Triple &Triple);
29 StringRef getARMCPUForMArch(llvm::StringRef Arch, const llvm::Triple &Triple);
30 llvm::ARM::ArchKind getLLVMArchKindForARM(StringRef CPU, StringRef Arch,
32 StringRef getLLVMArchSuffixForARM(llvm::StringRef CPU, llvm::StringRef Arch,
67 llvm::StringRef &Arch, llvm::StringRef &CPU,
/freebsd/contrib/llvm-project/llvm/utils/TableGen/
H A DARMTargetDefEmitter.cpp99 for (const StringRef &Arch : ARMArchVals.keys()) in EmitARMTargetDef() local
100 OS << "ARM_ARCHITECTURE(" << Arch << ")\n"; in EmitARMTargetDef()
290 Record *Arch; in EmitARMTargetDef() local
295 Arch = RK.getDef("HasV8_0aOps"); in EmitARMTargetDef()
302 Arch = *ArchIter; in EmitARMTargetDef()
309 auto Major = Arch->getValueAsInt("Major"); in EmitARMTargetDef()
310 auto Minor = Arch->getValueAsInt("Minor"); in EmitARMTargetDef()
311 auto Profile = Arch->getValueAsString("Profile"); in EmitARMTargetDef()
314 CheckFeatureTree(Arch); in EmitARMTargetDef()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/DWARF/
H A DDWARFDebugFrame.h443 Triple::ArchType triple() const { return Arch; } in triple()
446 Triple::ArchType Arch) in CFIProgram() argument
449 Arch(Arch) {} in CFIProgram()
469 Triple::ArchType Arch; variable
537 uint64_t CodeAlign, int64_t DataAlign, Triple::ArchType Arch) in FrameEntry() argument
539 CFIs(CodeAlign, DataAlign, Arch) {} in FrameEntry()
577 std::optional<uint32_t> PersonalityEnc, Triple::ArchType Arch) in CIE() argument
579 DataAlignmentFactor, Arch), in CIE()
633 std::optional<uint64_t> LSDAAddress, Triple::ArchType Arch) in FDE() argument
636 Cie ? Cie->getDataAlignmentFactor() : 0, Arch), in FDE()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DBareMetal.cpp40 std::string Arch = riscv::getRISCVArch(Args, TargetTriple); in findRISCVMultilibs() local
52 (Arch == "rv64imafdc") || (Arch == "rv64gc"); // gc => imafdc in findRISCVMultilibs()
54 addMultilibFlag((Arch == "rv64imac"), "-march=rv64imac", Flags); in findRISCVMultilibs()
80 bool UseI = (Arch == "rv32i") || (Arch == "rv32ic"); // ic => i in findRISCVMultilibs()
81 bool UseIm = (Arch == "rv32im") || (Arch == "rv32imc"); // imc => im in findRISCVMultilibs()
82 bool UseImafc = (Arch == "rv32imafc") || (Arch == "rv32imafdc") || in findRISCVMultilibs()
83 (Arch == "rv32gc"); // imafdc,gc => imafc in findRISCVMultilibs()
87 addMultilibFlag((Arch == "rv32iac"), "-march=rv32iac", Flags); in findRISCVMultilibs()
88 addMultilibFlag((Arch == "rv32imac"), "-march=rv32imac", Flags); in findRISCVMultilibs()
471 const llvm::Triple::ArchType Arch = TC.getArch(); in ConstructJob() local
[all …]
H A DCuda.cpp226 for (int Arch = (int)OffloadArch::SM_30, E = (int)OffloadArch::LAST; in CudaInstallationDetector() local
227 Arch < E; ++Arch) { in CudaInstallationDetector()
228 OffloadArch OA = static_cast<OffloadArch>(Arch); in CudaInstallationDetector()
315 OffloadArch Arch) const { in CheckCudaVersionSupportsArch()
316 if (Arch == OffloadArch::UNKNOWN || Version == CudaVersion::UNKNOWN || in CheckCudaVersionSupportsArch()
317 ArchsWithBadVersion[(int)Arch]) in CheckCudaVersionSupportsArch()
320 auto MinVersion = MinVersionForOffloadArch(Arch); in CheckCudaVersionSupportsArch()
321 auto MaxVersion = MaxVersionForOffloadArch(Arch); in CheckCudaVersionSupportsArch()
323 ArchsWithBadVersion[(int)Arch] = true; in CheckCudaVersionSupportsArch()
325 << OffloadArchToString(Arch) << CudaVersionToString(MinVersion) in CheckCudaVersionSupportsArch()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DTapiFile.cpp51 Architecture Arch) in TapiFile() argument
52 : SymbolicFile(ID_TapiFile, Source), Arch(Arch), in TapiFile()
55 if (!Symbol->getArchitectures().has(Arch)) in TapiFile()
64 if (Interface.getPlatforms().count(PLATFORM_MACOS) && Arch == AK_i386) { in TapiFile()

12345678