Lines Matching refs:T
15 static MachO::CPUSubTypeX86 getX86SubType(const Triple &T) { in getX86SubType() argument
16 assert(T.isX86()); in getX86SubType()
17 if (T.isArch32Bit()) in getX86SubType()
20 assert(T.isArch64Bit()); in getX86SubType()
21 if (T.getArchName() == "x86_64h") in getX86SubType()
26 static MachO::CPUSubTypeARM getARMSubType(const Triple &T) { in getARMSubType() argument
27 assert(T.isARM() || T.isThumb()); in getARMSubType()
28 StringRef Arch = T.getArchName(); in getARMSubType()
57 static MachO::CPUSubTypeARM64 getARM64SubType(const Triple &T) { in getARM64SubType() argument
58 assert(T.isAArch64()); in getARM64SubType()
59 if (T.isArch32Bit()) in getARM64SubType()
61 if (T.isArm64e()) in getARM64SubType()
67 static MachO::CPUSubTypePowerPC getPowerPCSubType(const Triple &T) { in getPowerPCSubType() argument
71 static Error unsupported(const char *Str, const Triple &T) { in unsupported() argument
74 T.str().c_str()); in unsupported()
77 Expected<uint32_t> MachO::getCPUType(const Triple &T) { in getCPUType() argument
78 if (!T.isOSBinFormatMachO()) in getCPUType()
79 return unsupported("type", T); in getCPUType()
80 if (T.isX86() && T.isArch32Bit()) in getCPUType()
82 if (T.isX86() && T.isArch64Bit()) in getCPUType()
84 if (T.isARM() || T.isThumb()) in getCPUType()
86 if (T.isAArch64()) in getCPUType()
87 return T.isArch32Bit() ? MachO::CPU_TYPE_ARM64_32 : MachO::CPU_TYPE_ARM64; in getCPUType()
88 if (T.getArch() == Triple::ppc) in getCPUType()
90 if (T.getArch() == Triple::ppc64) in getCPUType()
92 return unsupported("type", T); in getCPUType()
95 Expected<uint32_t> MachO::getCPUSubType(const Triple &T) { in getCPUSubType() argument
96 if (!T.isOSBinFormatMachO()) in getCPUSubType()
97 return unsupported("subtype", T); in getCPUSubType()
98 if (T.isX86()) in getCPUSubType()
99 return getX86SubType(T); in getCPUSubType()
100 if (T.isARM() || T.isThumb()) in getCPUSubType()
101 return getARMSubType(T); in getCPUSubType()
102 if (T.isAArch64() || T.getArch() == Triple::aarch64_32) in getCPUSubType()
103 return getARM64SubType(T); in getCPUSubType()
104 if (T.getArch() == Triple::ppc || T.getArch() == Triple::ppc64) in getCPUSubType()
105 return getPowerPCSubType(T); in getCPUSubType()
106 return unsupported("subtype", T); in getCPUSubType()