@Test @Ignore public void testGetHostTarget() throws Exception { Target t = Target.getHostTarget(); String archProp = System.getProperty("os.arch").toLowerCase(); if (archProp.matches("amd64|x86[-_]64")) { assertEquals("x86-64", t.getName()); } else if (archProp.matches("i386|x86")) { assertEquals("x86", t.getName()); } else { fail("Unknown os.arch: " + archProp); } }
public static Target getHostTarget() { return lookupTarget(HOST_TRIPLE); }
Target { public static Target getHostTarget() { return lookupTarget(HOST_TRIPLE); } }
Target { public static Target getHostTarget() { return lookupTarget(HOST_TRIPLE); } Target(TargetRef ref); }
Target { public static Target getHostTarget() { return lookupTarget(HOST_TRIPLE); } Target(TargetRef ref); String getName(); String getDescription(); boolean hasJIT(); boolean hasTargetMachine(); boolean hasAsmBackend(); TargetMachine createTargetMachine(String triple); TargetMachine createTargetMachine(String triple, String cpu, String features, 
            CodeGenOptLevel optLevel, RelocMode relocMode, CodeModel codeModel); @Override int hashCode(); @Override boolean equals(Object obj); static String getHostTriple(); static Target getHostTarget(); static Target getTarget(String name); static Target lookupTarget(String triple); static List<Target> getTargets(); static Map<String, Target> getTargetsMap(); }
Target { public static Target getHostTarget() { return lookupTarget(HOST_TRIPLE); } Target(TargetRef ref); String getName(); String getDescription(); boolean hasJIT(); boolean hasTargetMachine(); boolean hasAsmBackend(); TargetMachine createTargetMachine(String triple); TargetMachine createTargetMachine(String triple, String cpu, String features, 
            CodeGenOptLevel optLevel, RelocMode relocMode, CodeModel codeModel); @Override int hashCode(); @Override boolean equals(Object obj); static String getHostTriple(); static Target getHostTarget(); static Target getTarget(String name); static Target lookupTarget(String triple); static List<Target> getTargets(); static Map<String, Target> getTargetsMap();  }