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;
198 switch (
MI->getOpcode()) {
199 case TargetOpcode::G_LOAD:
200 case TargetOpcode::G_ZEXTLOAD:
201 case TargetOpcode::G_SEXTLOAD:
202 case TargetOpcode::G_FPEXTLOAD:
214 return MI->getOpcode() == TargetOpcode::G_LOAD;
222 return MI->getOpcode() == TargetOpcode::G_SEXTLOAD ||
223 MI->getOpcode() == TargetOpcode::G_ZEXTLOAD ||
224 MI->getOpcode() == TargetOpcode::G_FPEXTLOAD;
232 return MI->getOpcode() == TargetOpcode::G_SEXTLOAD;
240 return MI->getOpcode() == TargetOpcode::G_ZEXTLOAD;
248 return MI->getOpcode() == TargetOpcode::G_FPEXTLOAD;
259 switch (
MI->getOpcode()) {
260 case TargetOpcode::G_STORE:
261 case TargetOpcode::G_FPTRUNCSTORE:
273 return MI->getOpcode() == TargetOpcode::G_STORE;
281 return MI->getOpcode() == TargetOpcode::G_FPTRUNCSTORE;
294 return MI->getOpcode() == TargetOpcode::G_UNMERGE_VALUES;
309 switch (
MI->getOpcode()) {
310 case TargetOpcode::G_MERGE_VALUES:
311 case TargetOpcode::G_CONCAT_VECTORS:
312 case TargetOpcode::G_BUILD_VECTOR:
324 return MI->getOpcode() == TargetOpcode::G_MERGE_VALUES;
332 return MI->getOpcode() == TargetOpcode::G_CONCAT_VECTORS;
340 return MI->getOpcode() == TargetOpcode::G_BUILD_VECTOR;
348 return MI->getOpcode() == TargetOpcode::G_BUILD_VECTOR_TRUNC;
360 return MI->getOpcode() == TargetOpcode::G_SHUFFLE_VECTOR;
371 return MI->getOpcode() == TargetOpcode::G_PTR_ADD;
379 return MI->getOpcode() == TargetOpcode::G_IMPLICIT_DEF;
391 return MI->getOpcode() == TargetOpcode::G_SELECT;
405 return MI->getOpcode() == TargetOpcode::G_ICMP ||
406 MI->getOpcode() == TargetOpcode::G_FCMP;
414 return MI->getOpcode() == TargetOpcode::G_ICMP;
422 return MI->getOpcode() == TargetOpcode::G_FCMP;
441 switch (
MI->getOpcode()) {
442 case TargetOpcode::G_UADDO:
443 case TargetOpcode::G_SADDO:
444 case TargetOpcode::G_USUBO:
445 case TargetOpcode::G_SSUBO:
446 case TargetOpcode::G_UADDE:
447 case TargetOpcode::G_SADDE:
448 case TargetOpcode::G_USUBE:
449 case TargetOpcode::G_SSUBE:
450 case TargetOpcode::G_UMULO:
451 case TargetOpcode::G_SMULO:
468 case TargetOpcode::G_UADDO:
469 case TargetOpcode::G_SADDO:
470 case TargetOpcode::G_UADDE:
471 case TargetOpcode::G_SADDE:
481 case TargetOpcode::G_SADDO:
482 case TargetOpcode::G_SSUBO:
483 case TargetOpcode::G_SADDE:
484 case TargetOpcode::G_SSUBE:
493 switch (
MI->getOpcode()) {
494 case TargetOpcode::G_UADDO:
495 case TargetOpcode::G_SADDO:
496 case TargetOpcode::G_USUBO:
497 case TargetOpcode::G_SSUBO:
498 case TargetOpcode::G_UADDE:
499 case TargetOpcode::G_SADDE:
500 case TargetOpcode::G_USUBE:
501 case TargetOpcode::G_SSUBE:
516 switch (
MI->getOpcode()) {
517 case TargetOpcode::G_UADDO:
518 case TargetOpcode::G_SADDO:
533 switch (
MI->getOpcode()) {
534 case TargetOpcode::G_USUBO:
535 case TargetOpcode::G_SSUBO:
550 switch (
MI->getOpcode()) {
551 case TargetOpcode::G_UADDE:
552 case TargetOpcode::G_SADDE:
553 case TargetOpcode::G_USUBE:
554 case TargetOpcode::G_SSUBE:
573 case TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS:
574 case TargetOpcode::G_INTRINSIC_CONVERGENT_W_SIDE_EFFECTS:
583 case TargetOpcode::G_INTRINSIC_CONVERGENT:
584 case TargetOpcode::G_INTRINSIC_CONVERGENT_W_SIDE_EFFECTS:
592 switch (
MI->getOpcode()) {
593 case TargetOpcode::G_INTRINSIC:
594 case TargetOpcode::G_INTRINSIC_W_SIDE_EFFECTS:
595 case TargetOpcode::G_INTRINSIC_CONVERGENT:
596 case TargetOpcode::G_INTRINSIC_CONVERGENT_W_SIDE_EFFECTS:
608 switch (
MI->getOpcode()) {
609 case TargetOpcode::G_VECREDUCE_FADD:
610 case TargetOpcode::G_VECREDUCE_FMUL:
611 case TargetOpcode::G_VECREDUCE_FMAX:
612 case TargetOpcode::G_VECREDUCE_FMIN:
613 case TargetOpcode::G_VECREDUCE_FMAXIMUM:
614 case TargetOpcode::G_VECREDUCE_FMINIMUM:
615 case TargetOpcode::G_VECREDUCE_ADD:
616 case TargetOpcode::G_VECREDUCE_MUL:
617 case TargetOpcode::G_VECREDUCE_AND:
618 case TargetOpcode::G_VECREDUCE_OR:
619 case TargetOpcode::G_VECREDUCE_XOR:
620 case TargetOpcode::G_VECREDUCE_SMAX:
621 case TargetOpcode::G_VECREDUCE_SMIN:
622 case TargetOpcode::G_VECREDUCE_UMAX:
623 case TargetOpcode::G_VECREDUCE_UMIN:
635 case TargetOpcode::G_VECREDUCE_FADD:
636 ScalarOpc = TargetOpcode::G_FADD;
638 case TargetOpcode::G_VECREDUCE_FMUL:
639 ScalarOpc = TargetOpcode::G_FMUL;
641 case TargetOpcode::G_VECREDUCE_FMAX:
642 ScalarOpc = TargetOpcode::G_FMAXNUM;
644 case TargetOpcode::G_VECREDUCE_FMIN:
645 ScalarOpc = TargetOpcode::G_FMINNUM;
647 case TargetOpcode::G_VECREDUCE_FMAXIMUM:
648 ScalarOpc = TargetOpcode::G_FMAXIMUM;
650 case TargetOpcode::G_VECREDUCE_FMINIMUM:
651 ScalarOpc = TargetOpcode::G_FMINIMUM;
653 case TargetOpcode::G_VECREDUCE_ADD:
654 ScalarOpc = TargetOpcode::G_ADD;
656 case TargetOpcode::G_VECREDUCE_MUL:
657 ScalarOpc = TargetOpcode::G_MUL;
659 case TargetOpcode::G_VECREDUCE_AND:
660 ScalarOpc = TargetOpcode::G_AND;
662 case TargetOpcode::G_VECREDUCE_OR:
663 ScalarOpc = TargetOpcode::G_OR;
665 case TargetOpcode::G_VECREDUCE_XOR:
666 ScalarOpc = TargetOpcode::G_XOR;
668 case TargetOpcode::G_VECREDUCE_SMAX:
669 ScalarOpc = TargetOpcode::G_SMAX;
671 case TargetOpcode::G_VECREDUCE_SMIN:
672 ScalarOpc = TargetOpcode::G_SMIN;
674 case TargetOpcode::G_VECREDUCE_UMAX:
675 ScalarOpc = TargetOpcode::G_UMAX;
677 case TargetOpcode::G_VECREDUCE_UMIN:
678 ScalarOpc = TargetOpcode::G_UMIN;
702 return MI->getOpcode() == TargetOpcode::G_PHI;
713 switch (
MI->getOpcode()) {
715 case TargetOpcode::G_ADD:
716 case TargetOpcode::G_SUB:
717 case TargetOpcode::G_MUL:
718 case TargetOpcode::G_SDIV:
719 case TargetOpcode::G_UDIV:
720 case TargetOpcode::G_SREM:
721 case TargetOpcode::G_UREM:
722 case TargetOpcode::G_SMIN:
723 case TargetOpcode::G_SMAX:
724 case TargetOpcode::G_UMIN:
725 case TargetOpcode::G_UMAX:
727 case TargetOpcode::G_FMINNUM:
728 case TargetOpcode::G_FMAXNUM:
729 case TargetOpcode::G_FMINNUM_IEEE:
730 case TargetOpcode::G_FMAXNUM_IEEE:
731 case TargetOpcode::G_FMINIMUM:
732 case TargetOpcode::G_FMAXIMUM:
733 case TargetOpcode::G_FADD:
734 case TargetOpcode::G_FSUB:
735 case TargetOpcode::G_FMUL:
736 case TargetOpcode::G_FDIV:
737 case TargetOpcode::G_FPOW:
739 case TargetOpcode::G_AND:
740 case TargetOpcode::G_OR:
741 case TargetOpcode::G_XOR:
753 switch (
MI->getOpcode()) {
754 case TargetOpcode::G_ADD:
755 case TargetOpcode::G_SUB:
756 case TargetOpcode::G_MUL:
757 case TargetOpcode::G_SDIV:
758 case TargetOpcode::G_UDIV:
759 case TargetOpcode::G_SREM:
760 case TargetOpcode::G_UREM:
761 case TargetOpcode::G_SMIN:
762 case TargetOpcode::G_SMAX:
763 case TargetOpcode::G_UMIN:
764 case TargetOpcode::G_UMAX:
776 switch (
MI->getOpcode()) {
777 case TargetOpcode::G_FMINNUM:
778 case TargetOpcode::G_FMAXNUM:
779 case TargetOpcode::G_FMINNUM_IEEE:
780 case TargetOpcode::G_FMAXNUM_IEEE:
781 case TargetOpcode::G_FMINIMUM:
782 case TargetOpcode::G_FMAXIMUM:
783 case TargetOpcode::G_FADD:
784 case TargetOpcode::G_FSUB:
785 case TargetOpcode::G_FMUL:
786 case TargetOpcode::G_FDIV:
787 case TargetOpcode::G_FPOW:
799 switch (
MI->getOpcode()) {
800 case TargetOpcode::G_AND:
801 case TargetOpcode::G_OR:
802 case TargetOpcode::G_XOR:
814 return MI->getOpcode() == TargetOpcode::G_ADD;
822 return MI->getOpcode() == TargetOpcode::G_AND;
830 return MI->getOpcode() == TargetOpcode::G_OR;
841 return MI->getOpcode() == TargetOpcode::G_EXTRACT_VECTOR_ELT;
853 return MI->getOpcode() == TargetOpcode::G_INSERT_VECTOR_ELT;
864 return MI->getOpcode() == TargetOpcode::G_EXTRACT_SUBVECTOR;
876 return MI->getOpcode() == TargetOpcode::G_INSERT_SUBVECTOR;
886 return MI->getOpcode() == TargetOpcode::G_FREEZE;
898 switch (
MI->getOpcode()) {
899 case TargetOpcode::G_ADDRSPACE_CAST:
900 case TargetOpcode::G_FPEXT:
901 case TargetOpcode::G_FPTOSI:
902 case TargetOpcode::G_FPTOUI:
903 case TargetOpcode::G_FPTOSI_SAT:
904 case TargetOpcode::G_FPTOUI_SAT:
905 case TargetOpcode::G_FPTRUNC:
906 case TargetOpcode::G_INTTOPTR:
907 case TargetOpcode::G_PTRTOINT:
908 case TargetOpcode::G_SEXT:
909 case TargetOpcode::G_SITOFP:
910 case TargetOpcode::G_TRUNC:
911 case TargetOpcode::G_TRUNC_SSAT_S:
912 case TargetOpcode::G_TRUNC_SSAT_U:
913 case TargetOpcode::G_TRUNC_USAT_U:
914 case TargetOpcode::G_UITOFP:
915 case TargetOpcode::G_ZEXT:
916 case TargetOpcode::G_ANYEXT:
928 return MI->getOpcode() == TargetOpcode::G_SEXT;
936 return MI->getOpcode() == TargetOpcode::G_ZEXT;
944 return MI->getOpcode() == TargetOpcode::G_ANYEXT;
952 return MI->getOpcode() == TargetOpcode::G_TRUNC;
962 return MI->getOpcode() == TargetOpcode::G_VSCALE;
974 return MI->getOpcode() == TargetOpcode::G_STEP_VECTOR;
982 return MI->getOpcode() == TargetOpcode::G_SUB;
990 return MI->getOpcode() == TargetOpcode::G_MUL;
1001 return MI->getOpcode() == TargetOpcode::G_SHL;
1014 switch (
MI->getOpcode()) {
1015 case TargetOpcode::G_SCMP:
1016 case TargetOpcode::G_UCMP:
1028 switch (
MI->getOpcode()) {
1029 case TargetOpcode::G_SEXT:
1030 case TargetOpcode::G_ZEXT:
1031 case TargetOpcode::G_ANYEXT:
1043 switch (
MI->getOpcode()) {
1044 case TargetOpcode::G_SEXT:
1045 case TargetOpcode::G_ZEXT:
1046 case TargetOpcode::G_ANYEXT:
1047 case TargetOpcode::G_TRUNC:
1061 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.
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.
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)
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.
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.
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
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.