Lines Matching defs:triple
144 /// This function simplifies cross-compiling by reading triple from the program
146 /// get the triple is arm-linux-eabi by the program name.
177 inline void ParseEmulation(llvm::Triple& triple, const char* emulation) {
197 triple.setArch(emu_triple.getArch());
200 triple.setOS(emu_triple.getOS());
203 triple.setEnvironment(emu_triple.getEnvironment());
212 if (config.targets().triple().getOS() == llvm::Triple::Win32) {
322 llvm::Triple triple;
324 // 1. Use the triple from command.
326 triple.setTriple(arg->getValue());
330 // 2. Use the triple from the program name prefix.
331 triple.setTriple(prog_triple);
333 // 3. Use the default target triple.
334 triple.setTriple(mcld::sys::getDefaultTargetTriple());
341 ParseEmulation(triple, arg->getValue());
351 config_.targets().setTriple(triple);