Lines Matching full:abi

26 // Check if ABI has been standardized; issue a warning if it hasn't.
28 static ABI checkABIStandardized(ABI Abi) { in checkABIStandardized() argument
30 switch (Abi) { in checkABIStandardized()
45 return Abi; in checkABIStandardized()
50 return Abi; in checkABIStandardized()
53 static ABI getTripleABI(const Triple &TT) { in getTripleABI()
55 ABI TripleABI; in getTripleABI()
72 ABI computeTargetABI(const Triple &TT, const FeatureBitset &FeatureBits, in computeTargetABI()
75 ABI ArgProvidedABI = getTargetABI(ABIName); in computeTargetABI()
76 ABI TripleABI = getTripleABI(TT); in computeTargetABI()
78 auto IsABIValidForFeature = [=](ABI Abi) { in computeTargetABI() argument
79 switch (Abi) { in computeTargetABI()
97 // 1. If the '-target-abi' is valid, use it. in computeTargetABI()
101 << "warning: triple-implied ABI conflicts with provided target-abi '" in computeTargetABI()
102 << ABIName << "', using target-abi\n"; in computeTargetABI()
106 // 2. If the triple-implied ABI is valid, use it. in computeTargetABI()
108 // If target-abi is not specified, use the valid triple-implied ABI. in computeTargetABI()
114 // Fallback to the triple-implied ABI if ABI name is specified but in computeTargetABI()
117 << "' is not a recognized ABI for this target, ignoring and " in computeTargetABI()
118 "using triple-implied ABI\n"; in computeTargetABI()
125 "ignoring and using triple-implied ABI\n"; in computeTargetABI()
134 "ignoring and using triple-implied ABI\n"; in computeTargetABI()
144 << "' ABI can't be used for a target that doesn't support the 'F' " in computeTargetABI()
145 "instruction set, ignoring and using triple-implied ABI\n"; in computeTargetABI()
150 << "' ABI can't be used for a target that doesn't support the 'D' " in computeTargetABI()
151 "instruction set, ignoring and using triple-implied ABI\n"; in computeTargetABI()
159 // 3. Parse the 'feature-abi', and use it. in computeTargetABI()
168 errs() << "warning: the triple-implied ABI is invalid, ignoring and using " in computeTargetABI()
169 "feature-implied ABI\n"; in computeTargetABI()
171 errs() << "warning: both target-abi and the triple-implied ABI are " in computeTargetABI()
172 "invalid, ignoring and using feature-implied ABI\n"; in computeTargetABI()
176 ABI getTargetABI(StringRef ABIName) { in getTargetABI()
177 auto TargetABI = StringSwitch<ABI>(ABIName) in getTargetABI()