13 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZINSTRINFO_H 14 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZINSTRINFO_H 25 #define GET_INSTRINFO_HEADER 26 #include "SystemZGenInstrInfo.inc" 30 class SystemZSubtarget;
127 : Target(target), Type(type), CCValid(ccValid), CCMask(ccMask) {}
166 void expandRIPseudo(
MachineInstr &MI,
unsigned LowOpcode,
unsigned HighOpcode,
167 bool ConvertHigh)
const;
168 void expandRIEPseudo(
MachineInstr &MI,
unsigned LowOpcode,
169 unsigned LowOpcodeK,
unsigned HighOpcode)
const;
170 void expandRXYPseudo(
MachineInstr &MI,
unsigned LowOpcode,
171 unsigned HighOpcode)
const;
172 void expandLOCPseudo(
MachineInstr &MI,
unsigned LowOpcode,
173 unsigned HighOpcode)
const;
174 void expandZExtPseudo(
MachineInstr &MI,
unsigned LowOpcode,
175 unsigned Size)
const;
180 const DebugLoc &DL,
unsigned DestReg,
unsigned SrcReg,
181 unsigned LowLowOpcode,
unsigned Size,
bool KillSrc,
182 bool UndefSrc)
const;
184 virtual void anchor();
199 unsigned CommuteOpIdx1,
200 unsigned CommuteOpIdx2)
const override;
209 int &FrameIndex)
const override;
210 bool isStackSlotCopy(
const MachineInstr &MI,
int &DestFrameIndex,
211 int &SrcFrameIndex)
const override;
215 bool AllowModify)
const override;
217 int *BytesRemoved =
nullptr)
const override;
221 int *BytesAdded =
nullptr)
const override;
222 bool analyzeCompare(
const MachineInstr &MI,
unsigned &SrcReg,
223 unsigned &SrcReg2,
int &
Mask,
int &
Value)
const override;
225 unsigned,
unsigned,
int&,
int&,
int&)
const override;
227 const DebugLoc &DL,
unsigned DstReg,
229 unsigned FalseReg)
const override;
232 bool isPredicable(
const MachineInstr &MI)
const override;
234 unsigned ExtraPredCycles,
237 unsigned NumCyclesT,
unsigned ExtraPredCyclesT,
239 unsigned NumCyclesF,
unsigned ExtraPredCyclesF,
247 bool KillSrc)
const override;
250 unsigned SrcReg,
bool isKill,
int FrameIndex,
255 unsigned DestReg,
int FrameIdx,
271 bool expandPostRAPseudo(
MachineInstr &MBBI)
const override;
279 unsigned getInstSizeInBytes(
const MachineInstr &MI)
const override;
290 unsigned &LoadOpcode,
unsigned &StoreOpcode)
const;
297 unsigned getOpcodeForOffset(
unsigned Opcode, int64_t
Offset)
const;
301 unsigned getLoadAndTest(
unsigned Opcode)
const;
306 bool isRxSBGMask(uint64_t Mask,
unsigned BitSize,
307 unsigned &Start,
unsigned &End)
const;
312 unsigned getFusedCompare(
unsigned Opcode,
318 unsigned getLoadAndTrap(
unsigned Opcode)
const;
324 unsigned Reg, uint64_t Value)
const;
335 areMemAccessesTriviallyDisjoint(
const MachineInstr &MIa,
341 #endif // LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZINSTRINFO_H
const SystemZRegisterInfo & getRegisterInfo() const
Wrapper class representing physical registers. Should be passed by value.
MachineBasicBlock * getMBB() const
This class represents lattice values for constants.
MachineBasicBlock * getMBBTarget()
int getTargetMemOpcode(uint16_t Opcode)
unsigned const TargetRegisterInfo * TRI
Branch(BranchType type, unsigned ccValid, unsigned ccMask, const MachineOperand *target)
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
int getTwoOperandOpcode(uint16_t Opcode)
BasicBlockListType::iterator iterator
unsigned const MachineRegisterInfo * MRI
The instances of the Type class are immutable: once they are created, they are never changed...
static unsigned getAccessSize(unsigned int Flags)
MachineInstrBuilder & UseMI
static void expandLoadStackGuard(MachineInstrBuilder &MIB, const TargetInstrInfo &TII)
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
static unsigned getCompareZeroCCMask(unsigned int Flags)
MachineOperand class - Representation of each machine instruction operand.
MachineInstrBuilder MachineInstrBuilder & DefMI
Target - Wrapper for Target specific information.
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
Representation of each machine instruction.
static unsigned getCCValues(unsigned int Flags)
bool isReg() const
isReg - Tests if this is a MO_Register operand.
LLVM Value Representation.
std::underlying_type< E >::type Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
StringRef - Represent a constant reference to a string, i.e.
bool isMBB() const
isMBB - Tests if this is a MO_MachineBasicBlock operand.