reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/ADT/Triple.h
  286   static std::string normalize(StringRef Str);

References

include/llvm/ADT/Triple.h
  289   std::string normalize() const { return normalize(Data); }
lib/Support/Host.cpp
 1532   Triple PT(Triple::normalize(TargetTripleString));
lib/Target/TargetMachineC.cpp
  250   return strdup(Triple::normalize(StringRef(triple)).c_str());
tools/bugpoint/bugpoint.cpp
  184     TargetTriple.setTriple(Triple::normalize(OverrideTriple));
tools/clang/lib/Driver/Driver.cpp
  429   llvm::Triple Target(llvm::Triple::normalize(TargetTriple));
  863   CfgTriple = llvm::Triple(llvm::Triple::normalize(CfgFileArch));
 4323   llvm::Triple Target(llvm::Triple::normalize(TargetTriple));
tools/clang/lib/Frontend/CompilerInstance.cpp
  924     TO->Triple = llvm::Triple::normalize(getFrontendOpts().AuxTriple);
tools/clang/lib/Frontend/CompilerInvocation.cpp
 3411   Opts.Triple = llvm::Triple::normalize(Opts.Triple);
tools/clang/tools/driver/cc1as_main.cpp
  208   Opts.Triple = llvm::Triple::normalize(Args.getLastArgValue(OPT_triple));
tools/clang/unittests/CodeGen/BufferSourceTest.cpp
   48     compiler.getTargetOpts().Triple = llvm::Triple::normalize(
tools/clang/unittests/CodeGen/CodeGenExternalTest.cpp
  267     compiler.getTargetOpts().Triple = llvm::Triple::normalize(
tools/clang/unittests/CodeGen/IncrementalProcessingTest.cpp
  118     compiler.getTargetOpts().Triple = llvm::Triple::normalize(
tools/clang/unittests/CodeGen/TBAAMetadataTest.cpp
   39     std::string TrStr = llvm::Triple::normalize(llvm::sys::getProcessTriple());
tools/llc/llc.cpp
  417       M->setTargetTriple(Triple::normalize(TargetTriple));
  420     TheTriple = Triple(Triple::normalize(TargetTriple));
tools/lldb/source/Host/common/HostInfoBase.cpp
  197   llvm::Triple normalized_triple(llvm::Triple::normalize(triple));
tools/lldb/source/Target/Platform.cpp
  935   llvm::Triple normalized_triple(llvm::Triple::normalize(triple));
tools/lldb/source/Utility/ArchSpec.cpp
  844   SetTriple(llvm::Triple(llvm::Triple::normalize(triple)));
tools/lli/lli.cpp
  424     Mod->setTargetTriple(Triple::normalize(TargetTriple));
tools/llvm-config/llvm-config.cpp
  356   const Triple HostTriple(Triple::normalize(LLVM_HOST_TRIPLE));
  545         OS << Triple::normalize(LLVM_DEFAULT_TARGET_TRIPLE) << '\n';
tools/llvm-isel-fuzzer/llvm-isel-fuzzer.cpp
  131   Triple TheTriple = Triple(Triple::normalize(TargetTriple));
tools/llvm-mc/llvm-mc.cpp
  196   Triple TheTriple(Triple::normalize(TripleName));
tools/llvm-mca/llvm-mca.cpp
  220     TripleName = Triple::normalize(sys::getDefaultTargetTriple());
tools/llvm-objdump/llvm-objdump.cpp
  472     TheTriple.setTriple(Triple::normalize(TripleName));
tools/llvm-opt-fuzzer/llvm-opt-fuzzer.cpp
  212   Triple TargetTriple = Triple(Triple::normalize(TargetTripleStr));
tools/llvm-rtdyld/llvm-rtdyld.cpp
  735   Triple TheTriple(Triple::normalize(TripleName));
tools/opt/opt.cpp
  590     M->setTargetTriple(Triple::normalize(TargetTriple));
unittests/ADT/TripleTest.cpp
  595   EXPECT_EQ("unknown", Triple::normalize(""));
  596   EXPECT_EQ("unknown-unknown", Triple::normalize("-"));
  597   EXPECT_EQ("unknown-unknown-unknown", Triple::normalize("--"));
  598   EXPECT_EQ("unknown-unknown-unknown-unknown", Triple::normalize("---"));
  600             Triple::normalize("----"));
  602   EXPECT_EQ("a", Triple::normalize("a"));
  603   EXPECT_EQ("a-b", Triple::normalize("a-b"));
  604   EXPECT_EQ("a-b-c", Triple::normalize("a-b-c"));
  605   EXPECT_EQ("a-b-c-d", Triple::normalize("a-b-c-d"));
  607   EXPECT_EQ("i386-b-c", Triple::normalize("i386-b-c"));
  608   EXPECT_EQ("i386-a-c", Triple::normalize("a-i386-c"));
  609   EXPECT_EQ("i386-a-b", Triple::normalize("a-b-i386"));
  610   EXPECT_EQ("i386-a-b-c", Triple::normalize("a-b-c-i386"));
  612   EXPECT_EQ("a-pc-c", Triple::normalize("a-pc-c"));
  613   EXPECT_EQ("unknown-pc-b-c", Triple::normalize("pc-b-c"));
  614   EXPECT_EQ("a-pc-b", Triple::normalize("a-b-pc"));
  615   EXPECT_EQ("a-pc-b-c", Triple::normalize("a-b-c-pc"));
  617   EXPECT_EQ("a-b-linux", Triple::normalize("a-b-linux"));
  618   EXPECT_EQ("unknown-unknown-linux-b-c", Triple::normalize("linux-b-c"));
  619   EXPECT_EQ("a-unknown-linux-c", Triple::normalize("a-linux-c"));
  621   EXPECT_EQ("i386-pc-a", Triple::normalize("a-pc-i386"));
  622   EXPECT_EQ("i386-pc-unknown", Triple::normalize("-pc-i386"));
  623   EXPECT_EQ("unknown-pc-linux-c", Triple::normalize("linux-pc-c"));
  624   EXPECT_EQ("unknown-pc-linux", Triple::normalize("linux-pc-"));
  626   EXPECT_EQ("i386", Triple::normalize("i386"));
  627   EXPECT_EQ("unknown-pc", Triple::normalize("pc"));
  628   EXPECT_EQ("unknown-unknown-linux", Triple::normalize("linux"));
  630   EXPECT_EQ("x86_64-unknown-linux-gnu", Triple::normalize("x86_64-gnu-linux"));
  655       EXPECT_EQ(E, Triple::normalize(Join(C[I[0]], C[I[1]], C[I[2]])));
  660       EXPECT_EQ(F, Triple::normalize(Join(C[J[0]], C[J[1]], C[J[2]], C[J[3]])));
  670       EXPECT_EQ(E, Triple::normalize(Join(C[I[0]], C[I[1]], C[I[2]])));
  675       EXPECT_EQ(F, Triple::normalize(Join(C[J[0]], C[J[1]], C[J[2]], C[J[3]])));
  686       EXPECT_EQ(E, Triple::normalize(Join(C[I[0]], C[I[1]], C[I[2]])));
  691       EXPECT_EQ(F, Triple::normalize(Join(C[J[0]], C[J[1]], C[J[2]], C[J[3]])));
  700       EXPECT_EQ(F, Triple::normalize(Join(C[J[0]], C[J[1]], C[J[2]], C[J[3]])));
  707             Triple::normalize("i386-mingw32")); // i386-pc-mingw32
  709             Triple::normalize("x86_64-linux-gnu")); // x86_64-pc-linux-gnu
  711             Triple::normalize("i486-linux-gnu")); // i486-pc-linux-gnu
  713             Triple::normalize("i386-redhat-linux")); // i386-redhat-linux-gnu
  715             Triple::normalize("i686-linux")); // i686-pc-linux-gnu
  717             Triple::normalize("arm-none-eabi")); // arm-none-eabi
  719             Triple::normalize("wasm32-wasi")); // wasm32-unknown-wasi
  721             Triple::normalize("wasm64-wasi")); // wasm64-unknown-wasi
 1302   Triple MSVCNormalized(Triple::normalize("i686-pc-windows-msvc-elf"));
 1305   Triple GNUWindowsNormalized(Triple::normalize("i686-pc-windows-gnu-elf"));
 1308   Triple CygnusNormalised(Triple::normalize("i686-pc-windows-cygnus-elf"));
 1311   Triple CygwinNormalized(Triple::normalize("i686-pc-cygwin-elf"));
 1326   EXPECT_EQ("i686-pc-windows-msvc", Triple::normalize("i686-pc-win32"));
 1327   EXPECT_EQ("i686-unknown-windows-msvc", Triple::normalize("i686-win32"));
 1328   EXPECT_EQ("i686-pc-windows-gnu", Triple::normalize("i686-pc-mingw32"));
 1329   EXPECT_EQ("i686-unknown-windows-gnu", Triple::normalize("i686-mingw32"));
 1330   EXPECT_EQ("i686-pc-windows-gnu", Triple::normalize("i686-pc-mingw32-w64"));
 1331   EXPECT_EQ("i686-unknown-windows-gnu", Triple::normalize("i686-mingw32-w64"));
 1332   EXPECT_EQ("i686-pc-windows-cygnus", Triple::normalize("i686-pc-cygwin"));
 1333   EXPECT_EQ("i686-unknown-windows-cygnus", Triple::normalize("i686-cygwin"));
 1335   EXPECT_EQ("x86_64-pc-windows-msvc", Triple::normalize("x86_64-pc-win32"));
 1336   EXPECT_EQ("x86_64-unknown-windows-msvc", Triple::normalize("x86_64-win32"));
 1337   EXPECT_EQ("x86_64-pc-windows-gnu", Triple::normalize("x86_64-pc-mingw32"));
 1338   EXPECT_EQ("x86_64-unknown-windows-gnu", Triple::normalize("x86_64-mingw32"));
 1340             Triple::normalize("x86_64-pc-mingw32-w64"));
 1342             Triple::normalize("x86_64-mingw32-w64"));
 1344   EXPECT_EQ("i686-pc-windows-elf", Triple::normalize("i686-pc-win32-elf"));
 1345   EXPECT_EQ("i686-unknown-windows-elf", Triple::normalize("i686-win32-elf"));
 1346   EXPECT_EQ("i686-pc-windows-macho", Triple::normalize("i686-pc-win32-macho"));
 1348             Triple::normalize("i686-win32-macho"));
 1350   EXPECT_EQ("x86_64-pc-windows-elf", Triple::normalize("x86_64-pc-win32-elf"));
 1352             Triple::normalize("x86_64-win32-elf"));
 1354             Triple::normalize("x86_64-pc-win32-macho"));
 1356             Triple::normalize("x86_64-win32-macho"));
 1359             Triple::normalize("i686-pc-windows-cygnus"));
 1360   EXPECT_EQ("i686-pc-windows-gnu", Triple::normalize("i686-pc-windows-gnu"));
 1362             Triple::normalize("i686-pc-windows-itanium"));
 1363   EXPECT_EQ("i686-pc-windows-msvc", Triple::normalize("i686-pc-windows-msvc"));
 1366             Triple::normalize("i686-pc-windows-elf-elf"));
 1436             Triple::normalize("armv6-netbsd-eabi"));
 1438             Triple::normalize("armv7-netbsd-eabi"));
 1440             Triple::normalize("armv6eb-netbsd-eabi"));
 1442             Triple::normalize("armv7eb-netbsd-eabi"));
 1444             Triple::normalize("armv6-netbsd-eabihf"));
 1446             Triple::normalize("armv7-netbsd-eabihf"));
 1448             Triple::normalize("armv6eb-netbsd-eabihf"));
 1450             Triple::normalize("armv7eb-netbsd-eabihf"));
 1453             Triple::normalize("armv7-suse-linux-gnueabi"));
unittests/DebugInfo/DWARF/DwarfUtils.cpp
   30   Triple T(Triple::normalize(sys::getDefaultTargetTriple()));
unittests/ExecutionEngine/JITLink/JITLinkTestCommon.cpp
   44   Triple TT(Triple::normalize(TripleStr));
unittests/ExecutionEngine/MCJIT/MCJITTestAPICommon.h
   53     HostTriple = Triple::normalize(HostTriple);
unittests/ExecutionEngine/MCJIT/MCJITTestBase.h
   43     M->setTargetTriple(Triple::normalize(BuilderTriple));
unittests/Support/Host.cpp
   44   HostTest() : Host(Triple::normalize(sys::getProcessTriple())) {}
unittests/Support/ThreadPool.cpp
   31     Triple Host(Triple::normalize(sys::getProcessTriple()));
unittests/Support/VirtualFileSystemTest.cpp
 1363     Triple Host(Triple::normalize(sys::getProcessTriple()));
unittests/Target/AArch64/InstSizes.cpp
   14   auto TT(Triple::normalize("aarch64--"));
unittests/Target/ARM/MachineInstrTest.cpp
  471   auto TT(Triple::normalize("thumbv8.1m.main-arm-none-eabi"));
unittests/Target/WebAssembly/WebAssemblyExceptionInfoTest.cpp
   25   auto TT(Triple::normalize("wasm32-unknown-unknown"));
unittests/Target/X86/MachineSizeOptsTest.cpp
   30   auto TT(Triple::normalize("x86_64--"));