diff options
Diffstat (limited to 'llvm/include/llvm/CodeGen/GlobalISel/Utils.h')
-rw-r--r-- | llvm/include/llvm/CodeGen/GlobalISel/Utils.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/include/llvm/CodeGen/GlobalISel/Utils.h b/llvm/include/llvm/CodeGen/GlobalISel/Utils.h index 8fed79585fe9..aed915d2cc4b 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/Utils.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/Utils.h @@ -44,7 +44,6 @@ class TargetLowering; class TargetPassConfig; class TargetRegisterInfo; class TargetRegisterClass; -class ConstantInt; class ConstantFP; class APFloat; class MachineIRBuilder; @@ -271,9 +270,10 @@ Optional<APFloat> ConstantFoldFPBinOp(unsigned Opcode, const Register Op1, /// If successful, returns the G_BUILD_VECTOR representing the folded vector /// constant. \p MIB should have an insertion point already set to create new /// G_CONSTANT instructions as needed. -Optional<MachineInstr *> -ConstantFoldVectorBinop(unsigned Opcode, const Register Op1, const Register Op2, - const MachineRegisterInfo &MRI, MachineIRBuilder &MIB); +Register ConstantFoldVectorBinop(unsigned Opcode, const Register Op1, + const Register Op2, + const MachineRegisterInfo &MRI, + MachineIRBuilder &MIB); Optional<APInt> ConstantFoldExtOp(unsigned Opcode, const Register Op1, uint64_t Imm, const MachineRegisterInfo &MRI); @@ -311,10 +311,11 @@ Align inferAlignFromPtrInfo(MachineFunction &MF, const MachinePointerInfo &MPO); /// /// If there is an existing live-in argument register, it will be returned. /// This will also ensure there is a valid copy -Register getFunctionLiveInPhysReg(MachineFunction &MF, const TargetInstrInfo &TII, +Register getFunctionLiveInPhysReg(MachineFunction &MF, + const TargetInstrInfo &TII, MCRegister PhysReg, const TargetRegisterClass &RC, - LLT RegTy = LLT()); + const DebugLoc &DL, LLT RegTy = LLT()); /// Return the least common multiple type of \p OrigTy and \p TargetTy, by changing the /// number of vector elements or scalar bitwidth. The intent is a |