Home
last modified time | relevance | path

Searched refs:Triple (Results 1 – 21 of 21) sorted by relevance

/frameworks/compile/libbcc/lib/ExecutionEngine/
DCompiler.cpp109 std::string Compiler::Triple; member in bcc::Compiler
110 llvm::Triple::ArchType Compiler::ArchType;
155 Triple = TARGET_TRIPLE_STRING; in GlobalInitialization()
161 llvm::Target const *Target = llvm::TargetRegistry::lookupTarget(Triple, Err); in GlobalInitialization()
163 ArchType = llvm::Triple::getArchTypeForLLVMName(Target->getName()); in GlobalInitialization()
165 ArchType = llvm::Triple::UnknownArch; in GlobalInitialization()
170 ArchType = llvm::Triple::arm; in GlobalInitialization()
172 ArchType = llvm::Triple::mipsel; in GlobalInitialization()
174 ArchType = llvm::Triple::x86; in GlobalInitialization()
176 ArchType = llvm::Triple::x86_64; in GlobalInitialization()
[all …]
DCompiler.h61 static std::string Triple; variable
62 static llvm::Triple::ArchType ArchType;
104 return Triple; in getTargetTriple()
107 static llvm::Triple::ArchType getTargetArchType() { in getTargetArchType()
DCompilerOption.h44 if ((Compiler::getTargetArchType() == llvm::Triple::x86_64) || in CompilerOption()
45 (Compiler::getTargetArchType() == llvm::Triple::x86)) { in CompilerOption()
74 if (Compiler::getTargetArchType() == llvm::Triple::x86_64) { in CompilerOption()
/frameworks/compile/mclinker/include/mcld/Support/
DTargetRegistry.h93 TargetLDBackend *createLDBackend(const llvm::Target& T, const std::string& Triple) const { in createLDBackend() argument
96 return TargetLDBackendCtorFn(T, Triple); in createLDBackend()
177 static const mcld::Target *lookupTarget(const std::string &Triple,
222 const std::string &Triple) { in Allocator()
223 return new TargetMachineImpl(TM, T, Triple); in Allocator()
/frameworks/compile/slang/
Dslang.cpp174 void Slang::createTarget(const std::string &Triple, const std::string &CPU, in createTarget() argument
176 if (!Triple.empty()) in createTarget()
177 mTargetOpts.Triple = Triple; in createTarget()
179 mTargetOpts.Triple = DEFAULT_TARGET_TRIPLE_STRING; in createTarget()
260 void Slang::init(const std::string &Triple, const std::string &CPU, in init() argument
273 createTarget(Triple, CPU, Features); in init()
Dslang_backend.cpp115 std::string Triple = mpModule->getTargetTriple(); in CreateCodeGenPasses() local
119 llvm::TargetRegistry::lookupTarget(Triple, Error); in CreateCodeGenPasses()
170 TargetInfo->createTargetMachine(Triple, mTargetOpts.CPU, FeaturesStr, in CreateCodeGenPasses()
Dslang.h94 void createTarget(std::string const &Triple, std::string const &CPU,
171 void init(const std::string &Triple, const std::string &CPU,
/frameworks/compile/mclinker/include/mcld/MC/
DMCLDInfo.h99 const llvm::Triple& triple() const in triple()
123 llvm::Triple m_Triple;
/frameworks/compile/mclinker/lib/Target/ARM/
DARMSectLinker.cpp26 Triple theTriple(pTriple); in createARMSectLinker()
DARMLDBackend.cpp990 Triple theTriple(pTriple); in createARMLDBackend()
/frameworks/compile/mclinker/lib/Target/X86/
DX86SectLinker.cpp26 Triple theTriple(pTriple); in createX86SectLinker()
DX86LDBackend.cpp725 Triple theTriple(pTriple); in createX86LDBackend()
/frameworks/compile/mclinker/lib/Target/Mips/
DMipsSectLinker.cpp26 llvm::Triple theTriple(pTriple); in createMipsSectLinker()
DMipsLDBackend.cpp876 llvm::Triple theTriple(pTriple); in createMipsLDBackend()
/frameworks/compile/mclinker/tools/llvm-mcld/
Dllvm-mcld.cpp466 Triple::OSType pOSType, in GetOutputStream()
492 if (pOSType == Triple::Win32) in GetOutputStream()
498 if (pOSType == Triple::Win32) in GetOutputStream()
740 Triple TheTriple; in main()
777 Triple::ArchType Type = Triple::getArchTypeForLLVMName(MArch); in main()
778 if (Type != Triple::UnknownArch) in main()
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
DBitcodeReader.h216 bool ParseTriple(std::string &Triple);
278 bool ParseModuleTriple(std::string &Triple);
DBitcodeReader.cpp2243 bool BitcodeReader::ParseModuleTriple(std::string &Triple) { in ParseModuleTriple() argument
2288 Triple = S; in ParseModuleTriple()
2298 bool BitcodeReader::ParseTriple(std::string &Triple) { in ParseTriple() argument
2336 if (ParseModuleTriple(Triple)) in ParseTriple()
3361 std::string Triple(""); in getBitcodeTargetTriple() local
3362 if (R->ParseTriple(Triple)) in getBitcodeTargetTriple()
3367 return Triple; in getBitcodeTargetTriple()
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.h223 bool ParseTriple(std::string &Triple);
285 bool ParseModuleTriple(std::string &Triple);
DBitcodeReader.cpp1945 bool BitcodeReader::ParseModuleTriple(std::string &Triple) { in ParseModuleTriple() argument
1990 Triple = S; in ParseModuleTriple()
2000 bool BitcodeReader::ParseTriple(std::string &Triple) { in ParseTriple() argument
2038 if (ParseModuleTriple(Triple)) in ParseTriple()
2988 std::string Triple(""); in getBitcodeTargetTriple() local
2989 if (R->ParseTriple(Triple)) in getBitcodeTargetTriple()
2994 return Triple; in getBitcodeTargetTriple()
/frameworks/compile/slang/BitWriter_2_9/
DBitcodeWriter.cpp1655 const Triple &TT) { in EmitDarwinBCHeaderAndTrailer()
1669 Triple::ArchType Arch = TT.getArch(); in EmitDarwinBCHeaderAndTrailer()
1670 if (Arch == Triple::x86_64) in EmitDarwinBCHeaderAndTrailer()
1672 else if (Arch == Triple::x86) in EmitDarwinBCHeaderAndTrailer()
1674 else if (Arch == Triple::ppc) in EmitDarwinBCHeaderAndTrailer()
1676 else if (Arch == Triple::ppc64) in EmitDarwinBCHeaderAndTrailer()
1678 else if (Arch == Triple::arm || Arch == Triple::thumb) in EmitDarwinBCHeaderAndTrailer()
1708 Triple TT(M->getTargetTriple()); in WriteBitcodeToFile()
/frameworks/compile/slang/BitWriter_2_9_func/
DBitcodeWriter.cpp1672 const Triple &TT) { in EmitDarwinBCHeaderAndTrailer()
1686 Triple::ArchType Arch = TT.getArch(); in EmitDarwinBCHeaderAndTrailer()
1687 if (Arch == Triple::x86_64) in EmitDarwinBCHeaderAndTrailer()
1689 else if (Arch == Triple::x86) in EmitDarwinBCHeaderAndTrailer()
1691 else if (Arch == Triple::ppc) in EmitDarwinBCHeaderAndTrailer()
1693 else if (Arch == Triple::ppc64) in EmitDarwinBCHeaderAndTrailer()
1695 else if (Arch == Triple::arm || Arch == Triple::thumb) in EmitDarwinBCHeaderAndTrailer()
1725 Triple TT(M->getTargetTriple()); in WriteBitcodeToFile()