16 #ifndef LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYINSTRINFO_H 17 #define LLVM_LIB_TARGET_WEBASSEMBLY_WEBASSEMBLYINSTRINFO_H 22 #define GET_INSTRINFO_HEADER 23 #include "WebAssemblyGenInstrInfo.inc" 27 class WebAssemblySubtarget;
41 const DebugLoc &DL,
unsigned DestReg,
unsigned SrcReg,
42 bool KillSrc)
const override;
45 unsigned OpIdx2)
const override;
50 bool AllowModify =
false)
const override;
52 int *BytesRemoved =
nullptr)
const override;
56 int *BytesAdded =
nullptr)
const override;
This class represents lattice values for constants.
bool isReallyTriviallyReMaterializable(const MachineInstr &MI, AliasAnalysis *AA) const override
const WebAssemblyRegisterInfo & getRegisterInfo() const
unsigned removeBranch(MachineBasicBlock &MBB, int *BytesRemoved=nullptr) const override
MachineInstr * commuteInstructionImpl(MachineInstr &MI, bool NewMI, unsigned OpIdx1, unsigned OpIdx2) const override
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
bool reverseBranchCondition(SmallVectorImpl< MachineOperand > &Cond) const override
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, const DebugLoc &DL, unsigned DestReg, unsigned SrcReg, bool KillSrc) const override
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl< MachineOperand > &Cond, bool AllowModify=false) const override
This file contains the WebAssembly implementation of the WebAssemblyRegisterInfo class.
unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef< MachineOperand > Cond, const DebugLoc &DL, int *BytesAdded=nullptr) const override
Representation of each machine instruction.
WebAssemblyInstrInfo(const WebAssemblySubtarget &STI)