| /llvm-project/llvm/lib/InterfaceStub/ |
| H A D | IFSHandler.cpp | 104 static void mapping(IO &IO, IFSTarget &Target) { in mapping() 105 IO.mapOptional("ObjectFormat", Target.ObjectFormat); in mapping() 106 IO.mapOptional("Arch", Target.ArchString); in mapping() 107 IO.mapOptional("Endianness", Target.Endianness); in mapping() 108 IO.mapOptional("BitWidth", Target.BitWidth); in mapping() 145 IO.mapOptional("Target", Stub.Target); in mapping() 158 IO.mapOptional("Target", Stub.Target.Triple); in mapping() 195 if (Stub->Target.ArchString) { in readIFSFromBuffer() 197 ELF::convertArchNameToEMachine(*Stub->Target.ArchString); in readIFSFromBuffer() 201 "IFS arch '" + *Stub->Target.ArchString + "' is unsupported"); in readIFSFromBuffer() [all …]
|
| /llvm-project/llvm/include/llvm/TextAPI/ |
| H A D | Target.h | 28 class Target { 30 Target() = default; 31 Target(Architecture Arch, PlatformType Platform, 34 explicit Target(const llvm::Triple &Triple) in Target() function 38 static llvm::Expected<Target> create(StringRef Target); 47 inline bool operator==(const Target &LHS, const Target &RHS) { 52 inline bool operator!=(const Target &LHS, const Target &RHS) { 56 inline bool operator<(const Target &LHS, const Target &RHS) { 61 inline bool operator==(const Target &LHS, const Architecture &RHS) { 65 inline bool operator!=(const Target &LHS, const Architecture &RHS) { [all …]
|
| H A D | InterfaceFile.h | 63 void addTarget(const Target &Target); 65 for (const auto &Target : Targets) in addTargets() local 66 addTarget(Target(Target)); in addTargets() 69 bool hasTarget(Target &Targ) const { in hasTarget() 149 void addTarget(const Target &Target); 154 bool hasTarget(const Target &Targ) const { in hasTarget() 165 addTarget(Target(Target_)); in addTargets() 174 std::function<bool(const Target &)>>; 244 void addParentUmbrella(const Target &Target_, StringRef Parent); 250 const std::vector<std::pair<Target, std::string>> &umbrellas() const { in umbrellas() [all …]
|
| /llvm-project/llvm/include/llvm/MC/ |
| H A D | TargetRegistry.h | 1 //===- MC/TargetRegistry.h - Target Registration ----------------*- C++ -*-===// 13 // Target specific class implementations should register themselves using the 136 /// Target - Wrapper for Target specific information. 144 class Target { 163 *(*)(const Target &T, const Triple &TT, StringRef CPU, StringRef Features, 171 using MCAsmBackendCtorTy = MCAsmBackend *(*)(const Target &T, 178 using MCDisassemblerCtorTy = MCDisassembler *(*)(const Target &T, 236 Target *Next; 248 /// name of the 'def X : Target [all...] |
| /llvm-project/llvm/lib/TextAPI/ |
| H A D | Target.cpp | 17 Expected<Target> Target::create(StringRef TargetValue) { in create() 39 return Target{Architecture, Platform}; in create() 42 Target::operator std::string() const { in operator std::string() 50 raw_ostream &operator<<(raw_ostream &OS, const Target &Target) { in operator <<() argument 51 OS << std::string(Target); in operator <<() 55 PlatformVersionSet mapToPlatformVersionSet(ArrayRef<Target> Targets) { in mapToPlatformVersionSet() 57 for (const auto &Target : Targets) in mapToPlatformVersionSet() local 58 Result.insert({Target.Platform, Target.MinDeployment}); in mapToPlatformVersionSet() 62 PlatformSet mapToPlatformSet(ArrayRef<Target> Targets) { in mapToPlatformSet() 64 for (const auto &Target : Targets) in mapToPlatformSet() local [all …]
|
| H A D | InterfaceFile.cpp | 22 void InterfaceFileRef::addTarget(const Target &Target) { in addTarget() argument 23 addEntry(Targets, Target); in addTarget() 27 const Target &Target) { in addAllowableClient() argument 31 Client->addTarget(Target); in addAllowableClient() 35 const Target &Target) { in addReexportedLibrary() argument 39 Lib->addTarget(Target); in addReexportedLibrary() 42 void InterfaceFile::addParentUmbrella(const Target 60 __anon502eeee20102(const std::pair<Target, std::string> &LHS, Target RHS) addRPath() argument 72 addTarget(const Target & Target) addTarget() argument 185 for (const auto &Target : Lib.targets()) merge() local 189 for (const auto &Target : Lib.targets()) merge() local 193 for (const auto &Target : Lib.targets()) merge() local 197 for (const auto &Target : Lib.targets()) merge() local 253 for (const auto &Target : Lib.targets()) remove() local 259 for (const auto &Target : Lib.targets()) remove() local 325 for (const auto &Target : Lib.targets()) extract() local 330 for (const auto &Target : Lib.targets()) extract() local [all...] |
| /llvm-project/clang/lib/Basic/Targets/ |
| H A D | OSTargets.h | 44 template <typename Target> in getOSDefines() 46 : public OSTargetInfo<Target> { in getOSDefines() 55 : OSTargetInfo<Target>(Triple, Opts) {} in DarwinTargetInfo() 67 template <typename Target> in DarwinTargetInfo() 69 : public AppleMachOTargetInfo<Target> { in DarwinTargetInfo() 79 : AppleMachOTargetInfo<Target>(Triple, Opts) { in DarwinTargetInfo() 112 return AppleMachOTargetInfo<Target>::getStaticInitSectionSpecifier(); in getExnObjectAlignment() 145 return OSTargetInfo<Target>::getExnObjectAlignment(); in getOSDefines() 162 // DragonFlyBSD Target in DragonFlyBSDTargetInfo() 163 template <typename Target> in DragonFlyBSDTargetInfo() [all...] |
| /llvm-project/lldb/include/lldb/Symbol/ |
| H A D | FuncUnwinders.h | 38 lldb::UnwindPlanSP GetUnwindPlanAtCallSite(Target &target, Thread &thread); 40 lldb::UnwindPlanSP GetUnwindPlanAtNonCallSite(Target &target, 43 lldb::UnwindPlanSP GetUnwindPlanFastUnwind(Target &target, 52 Address &GetFirstNonPrologueInsn(Target &target); 65 Address GetLSDAAddress(Target &target); 71 Address GetPersonalityRoutinePtrAddress(Target &target); 77 lldb::UnwindPlanSP GetAssemblyUnwindPlan(Target &target, Thread &thread); 79 lldb::UnwindPlanSP GetObjectFileUnwindPlan(Target &target); 81 lldb::UnwindPlanSP GetObjectFileAugmentedUnwindPlan(Target &target, 84 lldb::UnwindPlanSP GetEHFrameUnwindPlan(Target &target); [all …]
|
| /llvm-project/utils/bazel/llvm-project-overlay/llvm/ |
| H A D | BUILD.bazel | 60 if glob(["lib/Target/{}/*AsmPrinter.cpp".format(t)]) 76 ["lib/Target/{}/AsmParser/CMakeLists.txt".format(t)], 94 ["lib/Target/{}/Disassembler/CMakeLists.txt".format(t)], 112 ["lib/Target/{}/MCA/CMakeLists.txt".format(t)], 1087 ":Target", 1236 name = "Target", 1238 "lib/Target/*.cpp", 1241 "include/llvm/Target/*.h", 1243 "include/llvm-c/Target.h", 1265 "include/llvm/Target/* [all...] |
| /llvm-project/llvm/lib/Target/AArch64/TargetInfo/ |
| H A D | AArch64TargetInfo.cpp | 13 Target &llvm::getTheAArch64leTarget() { in getTheAArch64leTarget() 14 static Target TheAArch64leTarget; in getTheAArch64leTarget() 17 Target &llvm::getTheAArch64beTarget() { in getTheAArch64beTarget() 18 static Target TheAArch64beTarget; in getTheAArch64beTarget() 21 Target &llvm::getTheAArch64_32Target() { in getTheAArch64_32Target() 22 static Target TheAArch64leTarget; in getTheAArch64_32Target() 25 Target &llvm::getTheARM64Target() { in getTheARM64Target() 26 static Target TheARM64Target; in getTheARM64Target() 29 Target &llvm::getTheARM64_32Target() { in getTheARM64_32Target() 30 static Target TheARM64_32Target; in getTheARM64_32Target()
|
| /llvm-project/llvm/lib/MC/ |
| H A D | TargetRegistry.cpp | 1 //===--- TargetRegistry.cpp - Target registration -------------------------===// 23 static Target *FirstTarget = nullptr; 25 MCStreamer *Target::createMCObjectStreamer( in lookupTarget() 80 MCStreamer *Target::createMCObjectStreamer( in lookupTarget() 89 MCStreamer *Target::createAsmStreamer(MCContext &Ctx, in RegisterTarget() 101 MCStreamer *Target::createAsmStreamer(MCContext &Ctx, in RegisterTarget() 116 const Target *TargetRegistry::lookupTarget(StringRef ArchName, in printRegisteredTargetsForVersion() 122 const Target *TheTarget = nullptr; in printRegisteredTargetsForVersion() 125 [&](const Target &T) { return ArchName == T.getName(); }); in printRegisteredTargetsForVersion() 153 const Target *TargetRegistr 127 for (const auto &Target : Targets) { printRegisteredTargetsForVersion() local [all...] |
| /llvm-project/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86MachObjectWriter.cpp | 31 MCValue Target, 38 MCValue Target, 45 MCValue Target, 49 MCValue Target, uint64_t &FixedValue); 57 MCValue Target, uint64_t &FixedValue) override { in recordRelocation() argument 59 RecordX86_64Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation() 61 RecordX86Relocation(Writer, Asm, Fragment, Fixup, Target, FixedValue); in recordRelocation() 103 const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue) { in RecordX86_64Relocation() 118 Value = Target.getConstant(); in RecordX86_64Relocation() 129 if (Target in RecordX86_64Relocation() 97 RecordX86_64Relocation(MachObjectWriter * Writer,MCAssembler & Asm,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,uint64_t & FixedValue) RecordX86_64Relocation() argument 357 recordScatteredRelocation(MachObjectWriter * Writer,const MCAssembler & Asm,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,unsigned Log2Size,uint64_t & FixedValue) recordScatteredRelocation() argument 456 recordTLVPRelocation(MachObjectWriter * Writer,const MCAssembler & Asm,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,uint64_t & FixedValue) recordTLVPRelocation() argument 495 RecordX86Relocation(MachObjectWriter * Writer,const MCAssembler & Asm,const MCFragment * Fragment,const MCFixup & Fixup,MCValue Target,uint64_t & FixedValue) RecordX86Relocation() argument [all...] |
| /llvm-project/lldb/source/Target/ |
| H A D | Target.cpp | 1 //===-- Target.cpp --------------------------------------------------------===// 9 #include "lldb/Target/Target.h" 45 #include "lldb/Target/ABI.h" 46 #include "lldb/Target/ExecutionContext.h" 47 #include "lldb/Target/Language.h" 48 #include "lldb/Target/LanguageRuntime.h" 49 #include "lldb/Target/Process.h" 50 #include "lldb/Target/RegisterTypeBuilder.h" 51 #include "lldb/Target/SectionLoadLis 95 Target::Target(Debugger &debugger, const ArchSpec &target_arch, Target() function in Target [all...] |
| /llvm-project/clang/test/Analysis/Checkers/WebKit/ |
| H A D | call-args-safe-functions.cpp | 29 template<typename Target, typename Source> 30 inline Target* dynamicDowncast(Source* source) in dynamicDowncast() 32 return static_cast<Target*>(source); in dynamicDowncast() 35 template<typename Target, typename Source> 36 inline Target* checkedDowncast(Source* source) in checkedDowncast() 38 return static_cast<Target*>(source); in checkedDowncast() 41 template<typename Target, typename Source> 42 inline Target* uncheckedDowncast(Source* source) in uncheckedDowncast() 44 return static_cast<Target*>(source); in uncheckedDowncast()
|
| /llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
| H A D | PerGraphGOTAndPLTStubsBuilder.h | 70 Symbol &getGOTEntry(Symbol &Target) { in getGOTEntry() argument 71 assert(Target.hasName() && "GOT edge cannot point to anonymous target"); in getGOTEntry() 73 auto GOTEntryI = GOTEntries.find(Target.getName()); in getGOTEntry() 77 auto &GOTEntry = impl().createGOTEntry(Target); in getGOTEntry() 79 dbgs() << " Created GOT entry for " << Target.getName() << ": " in getGOTEntry() 83 GOTEntries.insert(std::make_pair(Target.getName(), &GOTEntry)).first; in getGOTEntry() 92 Symbol &getPLTStub(Symbol &Target) { in getPLTStub() argument 93 assert(Target.hasName() && in getPLTStub() 95 auto StubI = PLTStubs.find(Target.getName()); in getPLTStub() 98 auto &StubSymbol = impl().createPLTStub(Target); in getPLTStub() [all...] |
| /llvm-project/llvm/utils/gn/secondary/llvm/lib/Target/ |
| H A D | BUILD.gn | 1 import("//llvm/lib/Target/targets.gni") 2 import("//llvm/lib/Target/targets_with_asm_parsers.gni") 3 import("//llvm/lib/Target/targets_with_disassemblers.gni") 4 import("//llvm/lib/Target/targets_with_mcas.gni") 7 # 1. The actual //llvm/lib/Target build target, which is just a static 13 # through CodeGen) depend on the //llvm/lib/Target build target. 16 # //llvm/lib/Target:TargetsToBuild (a target in this file) -> 17 # /llvm/lib/Target/(X86|ARM|...) (in the subdirectories) -> 19 # //llvm/lib/Target (a target in this file again) 24 static_library("Target") { [all …]
|
| /llvm-project/clang/lib/Analysis/ |
| H A D | IssueHash.cpp | 32 static std::string GetSignature(const FunctionDecl *Target) { in GetSignature() argument 33 if (!Target) in GetSignature() 41 Target->getTemplateInstantiationPattern()) in GetSignature() 42 Target = InstantiatedFrom; in GetSignature() 44 if (!isa<CXXConstructorDecl>(Target) && !isa<CXXDestructorDecl>(Target) && in GetSignature() 45 !isa<CXXConversionDecl>(Target)) in GetSignature() 46 Signature.append(Target->getReturnType().getAsString()).append(" "); in GetSignature() 47 Signature.append(Target->getQualifiedNameAsString()).append("("); in GetSignature() 49 for (int i = 0, paramsCount = Target->getNumParams(); i < paramsCount; ++i) { in GetSignature() 52 Signature.append(Target->getParamDecl(i)->getType().getAsString()); in GetSignature() [all …]
|
| /llvm-project/llvm/lib/Target/ARM/TargetInfo/ |
| H A D | ARMTargetInfo.cpp | 13 Target &llvm::getTheARMLETarget() { in getTheARMLETarget() 14 static Target TheARMLETarget; in getTheARMLETarget() 17 Target &llvm::getTheARMBETarget() { in getTheARMBETarget() 18 static Target TheARMBETarget; in getTheARMBETarget() 21 Target &llvm::getTheThumbLETarget() { in getTheThumbLETarget() 22 static Target TheThumbLETarget; in getTheThumbLETarget() 25 Target &llvm::getTheThumbBETarget() { in getTheThumbBETarget() 26 static Target TheThumbBETarget; in getTheThumbBETarget()
|
| /llvm-project/llvm/lib/Target/Mips/TargetInfo/ |
| H A D | MipsTargetInfo.cpp | 13 Target &llvm::getTheMipsTarget() { in getTheMipsTarget() 14 static Target TheMipsTarget; in getTheMipsTarget() 17 Target &llvm::getTheMipselTarget() { in getTheMipselTarget() 18 static Target TheMipselTarget; in getTheMipselTarget() 21 Target &llvm::getTheMips64Target() { in getTheMips64Target() 22 static Target TheMips64Target; in getTheMips64Target() 25 Target &llvm::getTheMips64elTarget() { in getTheMips64elTarget() 26 static Target TheMips64elTarget; in getTheMips64elTarget()
|
| /llvm-project/llvm/lib/Target/PowerPC/TargetInfo/ |
| H A D | PowerPCTargetInfo.cpp | 13 Target &llvm::getThePPC32Target() { in getThePPC32Target() 14 static Target ThePPC32Target; in getThePPC32Target() 17 Target &llvm::getThePPC32LETarget() { in getThePPC32LETarget() 18 static Target ThePPC32LETarget; in getThePPC32LETarget() 21 Target &llvm::getThePPC64Target() { in getThePPC64Target() 22 static Target ThePPC64Target; in getThePPC64Target() 25 Target &llvm::getThePPC64LETarget() { in getThePPC64LETarget() 26 static Target ThePPC64LETarget; in getThePPC64LETarget()
|
| /llvm-project/llvm/include/llvm/ExecutionEngine/JITLink/ |
| H A D | TableManager.h | 32 Symbol &getEntryForTarget(LinkGraph &G, Symbol &Target) { in getEntryForTarget() argument 33 assert(Target.hasName() && "Edge cannot point to anonymous target"); in getEntryForTarget() 35 auto EntryI = Entries.find(Target.getName()); in getEntryForTarget() 39 auto &Entry = impl().createEntry(G, Target); in getEntryForTarget() 42 << Target.getName() << ": " << Entry << "\n"; in getEntryForTarget() 44 EntryI = Entries.insert(std::make_pair(Target.getName(), &Entry)).first; in getEntryForTarget() 61 bool registerPreExistingEntry(Symbol &Target, Symbol &Entry) { in registerPreExistingEntry() argument 62 assert(Target.hasName() && "Edge cannot point to anonymous target"); in registerPreExistingEntry() 64 Target.getName(), in registerPreExistingEntry()
|
| /llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldCOFFAArch64.h | 273 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation() 286 write32AArch64Addr(Target, Value, FinalAddress, 12); in resolveRelocation() 292 write32AArch64Addr(Target, Value, FinalAddress, 0); in resolveRelocation() 299 write32AArch64Imm(Target, Value & 0xFFF, 0); in resolveRelocation() 306 write32AArch64Ldr(Target, Value & 0xFFF); in resolveRelocation() 312 write32le(Target, VA); in resolveRelocation() 318 write32le(Target, RVA); in resolveRelocation() 323 or32le(Target + 12, ((Value + RE.Addend) & 0xFFFF) << 5); in resolveRelocation() 324 or32le(Target + 8, ((Value + RE.Addend) & 0xFFFF0000) >> 11); in resolveRelocation() 325 or32le(Target in resolveRelocation() 259 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); resolveRelocation() local [all...] |
| /llvm-project/llvm/utils/TableGen/ |
| H A D | DisassemblerEmitter.cpp | 31 /// documented in lib/Target/X86/X86Disassembler.h. 99 const CodeGenTarget Target(Records); in EmitDisassembler() 100 emitSourceFileHeader(" * " + Target.getName().str() + " Disassembler", OS); in EmitDisassembler() 103 if (Target.getName() == "X86") { in EmitDisassembler() 107 enumerate(Target.getInstructionsByEnumValue())) in EmitDisassembler() 111 PrintError(Target.getTargetRecord()->getLoc(), "Primary decode conflict"); in EmitDisassembler() 122 if (Target.getName() == "WebAssembly") { in EmitDisassembler() 123 emitWebAssemblyDisassemblerTables(OS, Target.getInstructionsByEnumValue()); in EmitDisassembler() 127 StringRef PredicateNamespace = Target.getName(); in EmitDisassembler() 98 CodeGenTarget Target(Records); EmitDisassembler() local
|
| H A D | ExegesisEmitter.cpp | 55 std::string Target; member in __anon820df4c50111::ExegesisEmitter 101 ArrayRef<const Record *> Targets = Records.getAllDerivedDefinitions("Target"); in ExegesisEmitter() 103 PrintFatalError("No 'Target' subclasses defined!"); in ExegesisEmitter() 105 PrintFatalError("Multiple subclasses of Target defined!"); in ExegesisEmitter() 106 Target = std::string(Targets[0]->getName()); in ExegesisEmitter() 146 OS << "\nstatic const std::pair<ValidationEvent, const char*> " << Target in emitPfmCountersInfo() 149 OS << " { " << VCI.EventName << ", " << Target << "PfmCounterNames[" in emitPfmCountersInfo() 155 OS << "\nstatic const PfmCountersInfo " << Target << Def.getName() in emitPfmCountersInfo() 162 OS << " " << Target << "PfmCounterNames[" << getPfmCounterId(CycleCounter) in emitPfmCountersInfo() 169 OS << " " << Target << "PfmCounterName in emitPfmCountersInfo() [all...] |
| /llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | BreakCriticalEdges.cpp | 357 for (BasicBlock *Target : Targets) { in SplitIndirectBrCriticalEdges() 358 if (IgnoreBlocksWithoutPHI && Target->phis().empty()) in SplitIndirectBrCriticalEdges() 362 BasicBlock *IBRPred = findIBRPredecessor(Target, OtherPreds); in SplitIndirectBrCriticalEdges() 369 auto FirstNonPHIIt = Target->getFirstNonPHIIt(); in SplitIndirectBrCriticalEdges() 370 if (FirstNonPHIIt->isEHPad() || Target->isLandingPad()) in SplitIndirectBrCriticalEdges() 376 EdgeProbabilities.reserve(Target->getTerminator()->getNumSuccessors()); in SplitIndirectBrCriticalEdges() 377 for (unsigned I = 0, E = Target->getTerminator()->getNumSuccessors(); in SplitIndirectBrCriticalEdges() 379 EdgeProbabilities.emplace_back(BPI->getEdgeProbability(Target, I)); in SplitIndirectBrCriticalEdges() 380 BPI->eraseBlock(Target); in SplitIndirectBrCriticalEdges() 383 BasicBlock *BodyBlock = Target in SplitIndirectBrCriticalEdges() [all...] |