22namespace LoongArchABI {
26 bool Is64Bit = TT.isArch64Bit();
30 switch (TT.getEnvironment()) {
45 switch (ArgProvidedABI) {
50 errs() <<
"'" << ABIName
51 <<
"' is not a recognized ABI for this target, ignoring and using "
52 "triple-implied ABI\n";
59 errs() <<
"32-bit ABIs are not supported for 64-bit targets, ignoring "
60 "target-abi and using triple-implied ABI\n";
69 errs() <<
"64-bit ABIs are not supported for 32-bit targets, ignoring "
70 "target-abi and using triple-implied ABI\n";
76 if (!ABIName.
empty() && ArgProvidedABI != TripleABI)
77 errs() <<
"warning: triple-implied ABI conflicts with provided target-abi '"
78 << ABIName <<
"', using target-abi\n";
80 return ArgProvidedABI;
Wrapper class representing physical registers. Should be passed by value.
StringRef - Represent a constant reference to a string, i.e.
constexpr bool empty() const
empty - Check if the string is empty.
A switch()-like statement whose cases are string literals.
StringSwitch & Case(StringLiteral S, T Value)
Triple - Helper class for working with autoconf configuration names.
ABI computeTargetABI(const Triple &TT, StringRef ABIName)
ABI getTargetABI(StringRef ABIName)
This is an optimization pass for GlobalISel generic memory operations.
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.