14#ifndef LLVM_CODEGEN_GLOBALISEL_GENERICMACHINEINSTRS_H
15#define LLVM_CODEGEN_GLOBALISEL_GENERICMACHINEINSTRS_H
29 constexpr static unsigned PoisonFlags =
90 switch (
MI->getOpcode()) {
91 case TargetOpcode::G_LOAD:
92 case TargetOpcode::G_STORE:
93 case TargetOpcode::G_ZEXTLOAD:
94 case TargetOpcode::G_SEXTLOAD:
95 case TargetOpcode::G_FPEXTLOAD:
96 case TargetOpcode::G_FPTRUNCSTORE:
122 return MI->getOpcode() == TargetOpcode::G_INDEXED_LOAD;
130 return MI->getOpcode() == TargetOpcode::G_INDEXED_SEXTLOAD ||
131 MI->getOpcode() == TargetOpcode::G_INDEXED_ZEXTLOAD;
139 switch (
MI->getOpcode()) {
140 case TargetOpcode::G_INDEXED_LOAD:
141 case TargetOpcode::G_INDEXED_ZEXTLOAD:
142 case TargetOpcode::G_INDEXED_SEXTLOAD:
154 return MI->getOpcode() == TargetOpcode::G_INDEXED_ZEXTLOAD;
162 return MI->getOpcode() == TargetOpcode::G_INDEXED_SEXTLOAD;
182 return MI->getOpcode() == TargetOpcode::G_INDEXED_STORE;
201 switch (
MI->getOpcode()) {
202 case TargetOpcode::G_LOAD:
203 case TargetOpcode::G_ZEXTLOAD:
204 case TargetOpcode::G_SEXTLOAD:
205 case TargetOpcode::G_FPEXTLOAD:
217 return MI->getOpcode() == TargetOpcode::G_LOAD;
225 return MI->getOpcode() == TargetOpcode::G_SEXTLOAD ||
226 MI->getOpcode() == TargetOpcode::G_ZEXTLOAD ||
227 MI->getOpcode() == TargetOpcode::G_FPEXTLOAD;
235 return MI->getOpcode() == TargetOpcode::G_SEXTLOAD;
243 return MI->getOpcode() == TargetOpcode::G_ZEXTLOAD;
251 return MI->getOpcode() == TargetOpcode::G_FPEXTLOAD;
262 switch (
MI->getOpcode()) {
263 case TargetOpcode::G_STORE:
264 case TargetOpcode::G_FPTRUNCSTORE:
276 return MI->getOpcode() == TargetOpcode::G_STORE;
284 return MI->getOpcode() == TargetOpcode::G_FPTRUNCSTORE;
297 return MI->getOpcode() == TargetOpcode::G_UNMERGE_VALUES;
312 switch (
MI->getOpcode()) {
313 case TargetOpcode::G_MERGE_VALUES:
314 case TargetOpcode::G_CONCAT_VECTORS:
315 case TargetOpcode::G_BUILD_VECTOR:
327 return MI->getOpcode() == TargetOpcode::G_MERGE_VALUES;
335 return MI->getOpcode() == TargetOpcode::G_CONCAT_VECTORS;
343 return MI->getOpcode() == TargetOpcode::G_BUILD_VECTOR;
351 return MI->getOpcode() == TargetOpcode::G_BUILD_VECTOR_TRUNC;
363 return MI->getOpcode() == TargetOpcode::G_SHUFFLE_VECTOR;
374 return MI->getOpcode() == TargetOpcode::G_PTR_ADD;
382 return MI->getOpcode() == TargetOpcode::G_IMPLICIT_DEF;
394 return MI->getOpcode() == TargetOpcode::G_SELECT;
408 return MI->getOpcode() == TargetOpcode::G_ICMP ||
409 MI->getOpcode() == TargetOpcode::G_FCMP;
417 return MI->getOpcode() == TargetOpcode::G_ICMP;
425 return MI->getOpcode() == TargetOpcode::G_FCMP;
444 switch (
MI->getOpcode()) {
445 case TargetOpcode::G_UADDO:
446 case TargetOpcode::G_SADDO:
447 case TargetOpcode::G_USUBO:
448 case TargetOpcode::G_SSUBO:
449 case TargetOpcode::G_UADDE:
450 case TargetOpcode::G_SADDE:
451 case TargetOpcode::G_USUBE:
452 case TargetOpcode::G_SSUBE:
453 case TargetOpcode::G_UMULO:
454 case TargetOpcode::G_SMULO:
471 case TargetOpcode::G_UADDO:
472 case TargetOpcode::G_SADDO:
473 case TargetOpcode::G_UADDE:
474 case TargetOpcode::G_SADDE:
484 case TargetOpcode::G_SADDO:
485 case TargetOpcode::G_SSUBO:
486 case TargetOpcode::G_SADDE:
487 case TargetOpcode::G_SSUBE:
496 switch (
MI->getOpcode()) {
497 case TargetOpcode::G_UADDO:
498 case TargetOpcode::G_SADDO:
499 case TargetOpcode::G_USUBO:
500 case TargetOpcode::G_SSUBO:
501 case TargetOpcode::G_UADDE:
502 case TargetOpcode::G_SADDE:
503 case TargetOpcode::G_USUBE:
504 case TargetOpcode::G_SSUBE:
519 switch (
MI->getOpcode()) {
520 case TargetOpcode::G_UADDO:
521 case TargetOpcode::G_SADDO:
536 switch (
MI->getOpcode()) {
537 case TargetOpcode::G_USUBO:
538 case TargetOpcode::G_SSUBO:
553 switch (
MI->getOpcode()) {
554 case TargetOpcode::G_UADDE:
555 case TargetOpcode::G_SADDE:
556 case TargetOpcode::G_USUBE:
557 case TargetOpcode::G_SSUBE:
576 case TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS:
577 case TargetOpcode::G_INTRINSIC_CONVERGENT_W_SIDE_EFFECTS:
586 case TargetOpcode::G_INTRINSIC_CONVERGENT:
587 case TargetOpcode::G_INTRINSIC_CONVERGENT_W_SIDE_EFFECTS:
595 switch (
MI->getOpcode()) {
596 case TargetOpcode::G_INTRINSIC:
597 case TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS:
598 case TargetOpcode::G_INTRINSIC_CONVERGENT:
599 case TargetOpcode::G_INTRINSIC_CONVERGENT_W_SIDE_EFFECTS:
611 switch (
MI->getOpcode()) {
612 case TargetOpcode::G_VECREDUCE_FADD:
613 case TargetOpcode::G_VECREDUCE_FMUL:
614 case TargetOpcode::G_VECREDUCE_FMAX:
615 case TargetOpcode::G_VECREDUCE_FMIN:
616 case TargetOpcode::G_VECREDUCE_FMAXIMUM:
617 case TargetOpcode::G_VECREDUCE_FMINIMUM:
618 case TargetOpcode::G_VECREDUCE_FMAXIMUMNUM:
619 case TargetOpcode::G_VECREDUCE_FMINIMUMNUM:
620 case TargetOpcode::G_VECREDUCE_ADD:
621 case TargetOpcode::G_VECREDUCE_MUL:
622 case TargetOpcode::G_VECREDUCE_AND:
623 case TargetOpcode::G_VECREDUCE_OR:
624 case TargetOpcode::G_VECREDUCE_XOR:
625 case TargetOpcode::G_VECREDUCE_SMAX:
626 case TargetOpcode::G_VECREDUCE_SMIN:
627 case TargetOpcode::G_VECREDUCE_UMAX:
628 case TargetOpcode::G_VECREDUCE_UMIN:
640 case TargetOpcode::G_VECREDUCE_FADD:
641 ScalarOpc = TargetOpcode::G_FADD;
643 case TargetOpcode::G_VECREDUCE_FMUL:
644 ScalarOpc = TargetOpcode::G_FMUL;
646 case TargetOpcode::G_VECREDUCE_FMAX:
647 ScalarOpc = TargetOpcode::G_FMAXNUM;
649 case TargetOpcode::G_VECREDUCE_FMIN:
650 ScalarOpc = TargetOpcode::G_FMINNUM;
652 case TargetOpcode::G_VECREDUCE_FMAXIMUM:
653 ScalarOpc = TargetOpcode::G_FMAXIMUM;
655 case TargetOpcode::G_VECREDUCE_FMINIMUM:
656 ScalarOpc = TargetOpcode::G_FMINIMUM;
658 case TargetOpcode::G_VECREDUCE_FMAXIMUMNUM:
659 ScalarOpc = TargetOpcode::G_FMAXIMUMNUM;
661 case TargetOpcode::G_VECREDUCE_FMINIMUMNUM:
662 ScalarOpc = TargetOpcode::G_FMINIMUMNUM;
664 case TargetOpcode::G_VECREDUCE_ADD:
665 ScalarOpc = TargetOpcode::G_ADD;
667 case TargetOpcode::G_VECREDUCE_MUL:
668 ScalarOpc = TargetOpcode::G_MUL;
670 case TargetOpcode::G_VECREDUCE_AND:
671 ScalarOpc = TargetOpcode::G_AND;
673 case TargetOpcode::G_VECREDUCE_OR:
674 ScalarOpc = TargetOpcode::G_OR;
676 case TargetOpcode::G_VECREDUCE_XOR:
677 ScalarOpc = TargetOpcode::G_XOR;
679 case TargetOpcode::G_VECREDUCE_SMAX:
680 ScalarOpc = TargetOpcode::G_SMAX;
682 case TargetOpcode::G_VECREDUCE_SMIN:
683 ScalarOpc = TargetOpcode::G_SMIN;
685 case TargetOpcode::G_VECREDUCE_UMAX:
686 ScalarOpc = TargetOpcode::G_UMAX;
688 case TargetOpcode::G_VECREDUCE_UMIN:
689 ScalarOpc = TargetOpcode::G_UMIN;
713 return MI->getOpcode() == TargetOpcode::G_PHI;
724 switch (
MI->getOpcode()) {
726 case TargetOpcode::G_ADD:
727 case TargetOpcode::G_SUB:
728 case TargetOpcode::G_MUL:
729 case TargetOpcode::G_SDIV:
730 case TargetOpcode::G_UDIV:
731 case TargetOpcode::G_SREM:
732 case TargetOpcode::G_UREM:
733 case TargetOpcode::G_SMIN:
734 case TargetOpcode::G_SMAX:
735 case TargetOpcode::G_UMIN:
736 case TargetOpcode::G_UMAX:
738 case TargetOpcode::G_FMINNUM:
739 case TargetOpcode::G_FMAXNUM:
740 case TargetOpcode::G_FMINNUM_IEEE:
741 case TargetOpcode::G_FMAXNUM_IEEE:
742 case TargetOpcode::G_FMINIMUM:
743 case TargetOpcode::G_FMAXIMUM:
744 case TargetOpcode::G_FADD:
745 case TargetOpcode::G_FSUB:
746 case TargetOpcode::G_FMUL:
747 case TargetOpcode::G_FDIV:
748 case TargetOpcode::G_FPOW:
750 case TargetOpcode::G_AND:
751 case TargetOpcode::G_OR:
752 case TargetOpcode::G_XOR:
764 switch (
MI->getOpcode()) {
765 case TargetOpcode::G_ADD:
766 case TargetOpcode::G_SUB:
767 case TargetOpcode::G_MUL:
768 case TargetOpcode::G_SDIV:
769 case TargetOpcode::G_UDIV:
770 case TargetOpcode::G_SREM:
771 case TargetOpcode::G_UREM:
772 case TargetOpcode::G_SMIN:
773 case TargetOpcode::G_SMAX:
774 case TargetOpcode::G_UMIN:
775 case TargetOpcode::G_UMAX:
787 switch (
MI->getOpcode()) {
788 case TargetOpcode::G_FMINNUM:
789 case TargetOpcode::G_FMAXNUM:
790 case TargetOpcode::G_FMINNUM_IEEE:
791 case TargetOpcode::G_FMAXNUM_IEEE:
792 case TargetOpcode::G_FMINIMUM:
793 case TargetOpcode::G_FMAXIMUM:
794 case TargetOpcode::G_FADD:
795 case TargetOpcode::G_FSUB:
796 case TargetOpcode::G_FMUL:
797 case TargetOpcode::G_FDIV:
798 case TargetOpcode::G_FPOW:
810 switch (
MI->getOpcode()) {
811 case TargetOpcode::G_AND:
812 case TargetOpcode::G_OR:
813 case TargetOpcode::G_XOR:
825 return MI->getOpcode() == TargetOpcode::G_ADD;
833 return MI->getOpcode() == TargetOpcode::G_AND;
841 return MI->getOpcode() == TargetOpcode::G_OR;
852 return MI->getOpcode() == TargetOpcode::G_EXTRACT_VECTOR_ELT;
864 return MI->getOpcode() == TargetOpcode::G_INSERT_VECTOR_ELT;
875 return MI->getOpcode() == TargetOpcode::G_EXTRACT_SUBVECTOR;
887 return MI->getOpcode() == TargetOpcode::G_INSERT_SUBVECTOR;
897 return MI->getOpcode() == TargetOpcode::G_FREEZE;
909 switch (
MI->getOpcode()) {
910 case TargetOpcode::G_ADDRSPACE_CAST:
911 case TargetOpcode::G_FPEXT:
912 case TargetOpcode::G_FPTOSI:
913 case TargetOpcode::G_FPTOUI:
914 case TargetOpcode::G_FPTOSI_SAT:
915 case TargetOpcode::G_FPTOUI_SAT:
916 case TargetOpcode::G_FPTRUNC:
917 case TargetOpcode::G_INTTOPTR:
918 case TargetOpcode::G_PTRTOINT:
919 case TargetOpcode::G_SEXT:
920 case TargetOpcode::G_SITOFP:
921 case TargetOpcode::G_TRUNC:
922 case TargetOpcode::G_TRUNC_SSAT_S:
923 case TargetOpcode::G_TRUNC_SSAT_U:
924 case TargetOpcode::G_TRUNC_USAT_U:
925 case TargetOpcode::G_UITOFP:
926 case TargetOpcode::G_ZEXT:
927 case TargetOpcode::G_ANYEXT:
939 return MI->getOpcode() == TargetOpcode::G_SEXT;
947 return MI->getOpcode() == TargetOpcode::G_ZEXT;
955 return MI->getOpcode() == TargetOpcode::G_ANYEXT;
963 return MI->getOpcode() == TargetOpcode::G_TRUNC;
973 return MI->getOpcode() == TargetOpcode::G_VSCALE;
985 return MI->getOpcode() == TargetOpcode::G_STEP_VECTOR;
996 return MI->getOpcode() == TargetOpcode::G_CONSTANT;
1004 return MI->getOpcode() == TargetOpcode::G_SUB;
1012 return MI->getOpcode() == TargetOpcode::G_MUL;
1023 return MI->getOpcode() == TargetOpcode::G_SHL;
1036 switch (
MI->getOpcode()) {
1037 case TargetOpcode::G_SCMP:
1038 case TargetOpcode::G_UCMP:
1050 switch (
MI->getOpcode()) {
1051 case TargetOpcode::G_SEXT:
1052 case TargetOpcode::G_ZEXT:
1053 case TargetOpcode::G_ANYEXT:
1065 switch (
MI->getOpcode()) {
1066 case TargetOpcode::G_SEXT:
1067 case TargetOpcode::G_ZEXT:
1068 case TargetOpcode::G_ANYEXT:
1069 case TargetOpcode::G_TRUNC:
1083 return MI->getOpcode() == TargetOpcode::G_SPLAT_VECTOR;
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
This file implements a class to represent arbitrary precision integral constant values and operations...
This file contains the declarations for the subclasses of Constant, which represent the different fla...
Class for arbitrary precision integers.
uint64_t getZExtValue() const
Get zero extended value.
Represent a constant reference to an array (0 or more elements consecutively in memory),...
Predicate
This enumeration lists the possible predicates for CmpInst subclasses.
This is the shared class of boolean and integer constants.
const APInt & getValue() const
Return the constant as an APInt value reference.
Represents overflowing add operations.
static bool classof(const MachineInstr *MI)
Represents overflowing add/sub operations that also consume a carry-in.
Register getCarryInReg() const
static bool classof(const MachineInstr *MI)
Represents overflowing add/sub operations.
static bool classof(const MachineInstr *MI)
Represents an integer addition.
static bool classof(const MachineInstr *MI)
Represents a logical and.
static bool classof(const MachineInstr *MI)
Represent a G_ICMP or G_FCMP.
static bool classof(const MachineInstr *MI)
CmpInst::Predicate getCond() const
Register getLHSReg() const
Register getRHSReg() const
static bool classof(const MachineInstr *MI)
Represents any generic load, including sign/zero extending variants.
const MDNode * getMemCacheHint() const
Returns the cache hint metadata for this load.
Register getDstReg() const
Get the definition register of the loaded value.
static bool classof(const MachineInstr *MI)
const MDNode * getRanges() const
Returns the Ranges that describes the dereference.
Represents any generic store, including truncating variants.
static bool classof(const MachineInstr *MI)
Register getValueReg() const
Get the stored value register.
Represents overflowing binary operations.
MachineOperand & getRHS()
MachineOperand & getLHS()
Register getCarryOutReg() const
Register getDstReg() const
static bool classof(const MachineInstr *MI)
Register getRHSReg() const
Register getLHSReg() const
Represents a binary operation, i.e, x = y op z.
Register getLHSReg() const
static bool classof(const MachineInstr *MI)
Register getRHSReg() const
Represents a G_BUILD_VECTOR_TRUNC.
static bool classof(const MachineInstr *MI)
Represents a G_BUILD_VECTOR.
static bool classof(const MachineInstr *MI)
Represents a cast operation.
static bool classof(const MachineInstr *MI)
Register getSrcReg() const
Represents a G_CONCAT_VECTORS.
static bool classof(const MachineInstr *MI)
static bool classof(const MachineInstr *MI)
const APInt & getValue() const
const ConstantInt * getConstantInt() const
Represents either a G_SEXTLOAD, G_ZEXTLOAD, or G_FPEXTLOAD.
static bool classof(const MachineInstr *MI)
Represents an integer-like extending operation.
static bool classof(const MachineInstr *MI)
Represents an integer-like extending or truncating operation.
static bool classof(const MachineInstr *MI)
Represents a floating point binary operation.
static bool classof(const MachineInstr *MI)
static bool classof(const MachineInstr *MI)
Represents a G_FPEXTLOAD.
static bool classof(const MachineInstr *MI)
Represents a G_FPTRUNCSTORE.
static bool classof(const MachineInstr *MI)
Register getSourceReg() const
static bool classof(const MachineInstr *MI)
static bool classof(const MachineInstr *MI)
Represents a G_IMPLICIT_DEF.
static bool classof(const MachineInstr *MI)
Represents either G_INDEXED_LOAD, G_INDEXED_ZEXTLOAD or G_INDEXED_SEXTLOAD.
static bool classof(const MachineInstr *MI)
Represents a G_INDEX_ZEXTLOAD/G_INDEXED_SEXTLOAD.
static bool classof(const MachineInstr *MI)
Represents indexed loads.
static bool classof(const MachineInstr *MI)
Register getOffsetReg() const
Get the offset register of the pointer value.
Register getWritebackReg() const
Get the def register of the writeback value.
Register getDstReg() const
Get the definition register of the loaded value.
Register getBaseReg() const
Get the base register of the pointer value.
static bool classof(const MachineInstr *MI)
Represents indexed stores.
Register getOffsetReg() const
Get the offset register of the pointer value.
Register getValueReg() const
Get the stored value register.
Register getBaseReg() const
Get the base register of the pointer value.
static bool classof(const MachineInstr *MI)
Register getWritebackReg() const
Get the def register of the writeback value.
static bool classof(const MachineInstr *MI)
Represents a insert subvector.
Register getSubVec() const
Register getBigVec() const
uint64_t getIndexImm() const
static bool classof(const MachineInstr *MI)
Represents an insert vector element.
Register getVectorReg() const
Register getIndexReg() const
Register getElementReg() const
static bool classof(const MachineInstr *MI)
Represents an integer binary operation.
static bool classof(const MachineInstr *MI)
Represents a call to an intrinsic.
bool isConvergent() const
Intrinsic::ID getIntrinsicID() const
bool is(Intrinsic::ID ID) const
static bool classof(const MachineInstr *MI)
bool hasSideEffects() const
Represents any type of generic load or store.
Register getPointerReg() const
Get the source register of the pointer value.
static bool classof(const MachineInstr *MI)
static bool classof(const MachineInstr *MI)
Represents a logical binary operation.
static bool classof(const MachineInstr *MI)
Provides common memory operand functionality.
MachineMemOperand & getMMO() const
Get the MachineMemOperand on this instruction.
LocationSize getMemSize() const
Returns the size in bytes of the memory access.
bool isUnordered() const
Returns true if this memory operation doesn't have any ordering constraints other than normal aliasin...
bool isAtomic() const
Returns true if the attached MachineMemOperand has the atomic flag set.
Align getAlign() const
Return the minimum known alignment in bytes of the actual memory reference.
bool isVolatile() const
Returns true if the attached MachineMemOpeand as the volatile flag set.
static bool classof(const MachineInstr *MI)
LocationSize getMemSizeInBits() const
Returns the size in bits of the memory access.
bool isSimple() const
Returns true if the memory operation is neither atomic or volatile.
Represents G_BUILD_VECTOR, G_CONCAT_VECTORS or G_MERGE_VALUES.
Register getSourceReg(unsigned I) const
Returns the I'th source register.
unsigned getNumSources() const
Returns the number of source registers.
static bool classof(const MachineInstr *MI)
Represents a G_MERGE_VALUES.
static bool classof(const MachineInstr *MI)
Represents an integer multiplication.
static bool classof(const MachineInstr *MI)
static bool classof(const MachineInstr *MI)
MachineBasicBlock * getIncomingBlock(unsigned I) const
Returns the I'th incoming basic block.
Register getIncomingValue(unsigned I) const
Returns the I'th incoming vreg.
static bool classof(const MachineInstr *MI)
unsigned getNumIncomingValues() const
Returns the number of incoming values.
Register getOffsetReg() const
static bool classof(const MachineInstr *MI)
Register getBaseReg() const
static bool classof(const MachineInstr *MI)
Represents a threeway compare.
Register getRHSReg() const
Register getLHSReg() const
static bool classof(const MachineInstr *MI)
Register getCondReg() const
static bool classof(const MachineInstr *MI)
Register getFalseReg() const
Register getTrueReg() const
static bool classof(const MachineInstr *MI)
Register getShiftReg() const
static bool classof(const MachineInstr *MI)
Register getSrcReg() const
Represents a G_SHUFFLE_VECTOR.
static bool classof(const MachineInstr *MI)
Register getSrc2Reg() const
Register getSrc1Reg() const
ArrayRef< int > getMask() const
Represents a splat vector.
Register getScalarReg() const
static bool classof(const MachineInstr *MI)
Represents a step vector.
static bool classof(const MachineInstr *MI)
static bool classof(const MachineInstr *MI)
Represents overflowing sub operations.
static bool classof(const MachineInstr *MI)
Represents an integer subtraction.
static bool classof(const MachineInstr *MI)
static bool classof(const MachineInstr *MI)
Represents a G_UNMERGE_VALUES.
unsigned getNumDefs() const
Returns the number of def registers.
static bool classof(const MachineInstr *MI)
Register getSourceReg() const
Get the unmerge source register.
static bool classof(const MachineInstr *MI)
unsigned getScalarOpcForReduction()
Get the opcode for the equivalent scalar operation for this reduction.
static bool classof(const MachineInstr *MI)
static bool classof(const MachineInstr *MI)
static bool classof(const MachineInstr *MI)
static bool classof(const MachineInstr *MI)
Register getReg(unsigned Idx) const
Access the Idx'th operand as a register and return it.
bool hasPoisonGeneratingFlags() const
void dropPoisonGeneratingFlags()
GenericMachineInstr()=delete
Representation of each machine instruction.
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
unsigned getNumOperands() const
Retuns the total number of operands.
void clearFlags(unsigned flags)
LLVM_ABI unsigned getNumExplicitDefs() const
Returns the number of non-implicit definitions.
mmo_iterator memoperands_begin() const
Access to memory operands of the instruction.
const MachineOperand & getOperand(unsigned i) const
uint32_t getFlags() const
Return the MI flags bitvector.
A description of a memory reference used in the backend.
LocationSize getSize() const
Return the size in bytes of the memory reference.
bool isUnordered() const
Returns true if this memory operation doesn't have any ordering constraints other than normal aliasin...
const MDNode * getRanges() const
Return the range tag for the memory reference.
bool isAtomic() const
Returns true if this operation has an atomic ordering requirement of unordered or higher,...
LLVM_ABI Align getAlign() const
Return the minimum known alignment in bytes of the actual memory reference.
LocationSize getSizeInBits() const
Return the size in bits of the memory reference.
const MDNode * getMemCacheHint() const
Return the cache hint metadata for the memory reference.
MachineOperand class - Representation of each machine instruction operand.
const ConstantInt * getCImm() const
MachineBasicBlock * getMBB() const
ArrayRef< int > getShuffleMask() const
Register getReg() const
getReg - Returns the register number.
Intrinsic::ID getIntrinsicID() const
unsigned getPredicate() const
Wrapper class representing virtual and physical registers.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
This is an optimization pass for GlobalISel generic memory operations.
bool isPreISelGenericOpcode(unsigned Opcode)
Check whether the given Opcode is a generic opcode that is not supposed to appear after ISel.
This struct is a compact representation of a valid (non-zero power of two) alignment.