mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-19 17:31:55 +00:00
GlobalISel: Use Register
This commit is contained in:
parent
f13ba22227
commit
5f7e38d8f4
@ -176,13 +176,13 @@ public:
|
||||
// Profiling methods.
|
||||
const GISelInstProfileBuilder &addNodeIDOpcode(unsigned Opc) const;
|
||||
const GISelInstProfileBuilder &addNodeIDRegType(const LLT Ty) const;
|
||||
const GISelInstProfileBuilder &addNodeIDRegType(const unsigned) const;
|
||||
const GISelInstProfileBuilder &addNodeIDRegType(const Register) const;
|
||||
|
||||
const GISelInstProfileBuilder &
|
||||
addNodeIDRegType(const TargetRegisterClass *RC) const;
|
||||
const GISelInstProfileBuilder &addNodeIDRegType(const RegisterBank *RB) const;
|
||||
|
||||
const GISelInstProfileBuilder &addNodeIDRegNum(unsigned Reg) const;
|
||||
const GISelInstProfileBuilder &addNodeIDRegNum(Register Reg) const;
|
||||
|
||||
const GISelInstProfileBuilder &addNodeIDImmediate(int64_t Imm) const;
|
||||
const GISelInstProfileBuilder &
|
||||
|
@ -171,11 +171,11 @@ APFloat getAPFloatFromSize(double Val, unsigned Size);
|
||||
/// fallback.
|
||||
void getSelectionDAGFallbackAnalysisUsage(AnalysisUsage &AU);
|
||||
|
||||
Optional<APInt> ConstantFoldBinOp(unsigned Opcode, const unsigned Op1,
|
||||
const unsigned Op2,
|
||||
Optional<APInt> ConstantFoldBinOp(unsigned Opcode, const Register Op1,
|
||||
const Register Op2,
|
||||
const MachineRegisterInfo &MRI);
|
||||
|
||||
Optional<APInt> ConstantFoldExtOp(unsigned Opcode, const unsigned Op1,
|
||||
Optional<APInt> ConstantFoldExtOp(unsigned Opcode, const Register Op1,
|
||||
uint64_t Imm, const MachineRegisterInfo &MRI);
|
||||
|
||||
/// Returns true if \p Val can be assumed to never be a NaN. If \p SNaN is true,
|
||||
|
@ -342,13 +342,13 @@ GISelInstProfileBuilder::addNodeIDImmediate(int64_t Imm) const {
|
||||
}
|
||||
|
||||
const GISelInstProfileBuilder &
|
||||
GISelInstProfileBuilder::addNodeIDRegNum(unsigned Reg) const {
|
||||
GISelInstProfileBuilder::addNodeIDRegNum(Register Reg) const {
|
||||
ID.AddInteger(Reg);
|
||||
return *this;
|
||||
}
|
||||
|
||||
const GISelInstProfileBuilder &
|
||||
GISelInstProfileBuilder::addNodeIDRegType(const unsigned Reg) const {
|
||||
GISelInstProfileBuilder::addNodeIDRegType(const Register Reg) const {
|
||||
addNodeIDMachineOperand(MachineOperand::CreateReg(Reg, false));
|
||||
return *this;
|
||||
}
|
||||
|
@ -396,8 +396,8 @@ APFloat llvm::getAPFloatFromSize(double Val, unsigned Size) {
|
||||
return APF;
|
||||
}
|
||||
|
||||
Optional<APInt> llvm::ConstantFoldBinOp(unsigned Opcode, const unsigned Op1,
|
||||
const unsigned Op2,
|
||||
Optional<APInt> llvm::ConstantFoldBinOp(unsigned Opcode, const Register Op1,
|
||||
const Register Op2,
|
||||
const MachineRegisterInfo &MRI) {
|
||||
auto MaybeOp1Cst = getConstantVRegVal(Op1, MRI);
|
||||
auto MaybeOp2Cst = getConstantVRegVal(Op2, MRI);
|
||||
@ -484,7 +484,7 @@ Align llvm::inferAlignFromPtrInfo(MachineFunction &MF,
|
||||
return Align(1);
|
||||
}
|
||||
|
||||
Optional<APInt> llvm::ConstantFoldExtOp(unsigned Opcode, const unsigned Op1,
|
||||
Optional<APInt> llvm::ConstantFoldExtOp(unsigned Opcode, const Register Op1,
|
||||
uint64_t Imm,
|
||||
const MachineRegisterInfo &MRI) {
|
||||
auto MaybeOp1Cst = getConstantVRegVal(Op1, MRI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user