mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-23 22:23:00 +00:00
Add MVT::fAny for overloading intrinsics on floating-point types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41128 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -146,7 +146,7 @@ static void EmitTypeGenerate(std::ostream &OS, Record *ArgType,
|
||||
unsigned Number = ArgType->getValueAsInt("Number");
|
||||
assert(Number < ArgNo && "Invalid matching number!");
|
||||
OS << "Tys[" << Number << "]";
|
||||
} else if (VT == MVT::iAny) {
|
||||
} else if (VT == MVT::iAny || VT == MVT::fAny) {
|
||||
// NOTE: The ArgNo variable here is not the absolute argument number, it is
|
||||
// the index of the "arbitrary" type in the Tys array passed to the
|
||||
// Intrinsic::getDeclaration function. Consequently, we only want to
|
||||
|
||||
Reference in New Issue
Block a user