Fix TableGen so that it will emit the correct signature for FastEmit_f:

/// FastEmit_f - This method is called by target-independent code
  /// to request that an instruction with the given type, opcode, and
  /// floating-point immediate operand be emitted.
  virtual unsigned FastEmit_f(MVT VT,
                              MVT RetVT,
                              unsigned Opcode,
                              const ConstantFP *FPImm);

Currently, it emits an accidentally overloaded version without the const on the
ConstantFP*. This doesn't affect anything in the tree, since nothing causes that
method to be autogenerated, but I have been playing with some ARM TableGen
refactorings that hit this problem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147727 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Cameron Zwarich 2012-01-07 08:18:37 +00:00
parent 34786a3ad7
commit 82f000266a

View File

@ -280,7 +280,7 @@ struct OperandsSignature {
} else if (Operands[i].isImm()) { } else if (Operands[i].isImm()) {
OS << "uint64_t imm" << i; OS << "uint64_t imm" << i;
} else if (Operands[i].isFP()) { } else if (Operands[i].isFP()) {
OS << "ConstantFP *f" << i; OS << "const ConstantFP *f" << i;
} else { } else {
llvm_unreachable("Unknown operand kind!"); llvm_unreachable("Unknown operand kind!");
} }