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_ADD:
619 case TargetOpcode::G_VECREDUCE_MUL:
620 case TargetOpcode::G_VECREDUCE_AND:
621 case TargetOpcode::G_VECREDUCE_OR:
622 case TargetOpcode::G_VECREDUCE_XOR:
623 case TargetOpcode::G_VECREDUCE_SMAX:
624 case TargetOpcode::G_VECREDUCE_SMIN:
625 case TargetOpcode::G_VECREDUCE_UMAX:
626 case TargetOpcode::G_VECREDUCE_UMIN:
638 case TargetOpcode::G_VECREDUCE_FADD:
639 ScalarOpc = TargetOpcode::G_FADD;
641 case TargetOpcode::G_VECREDUCE_FMUL:
642 ScalarOpc = TargetOpcode::G_FMUL;
644 case TargetOpcode::G_VECREDUCE_FMAX:
645 ScalarOpc = TargetOpcode::G_FMAXNUM;
647 case TargetOpcode::G_VECREDUCE_FMIN:
648 ScalarOpc = TargetOpcode::G_FMINNUM;
650 case TargetOpcode::G_VECREDUCE_FMAXIMUM:
651 ScalarOpc = TargetOpcode::G_FMAXIMUM;
653 case TargetOpcode::G_VECREDUCE_FMINIMUM:
654 ScalarOpc = TargetOpcode::G_FMINIMUM;
656 case TargetOpcode::G_VECREDUCE_ADD:
657 ScalarOpc = TargetOpcode::G_ADD;
659 case TargetOpcode::G_VECREDUCE_MUL:
660 ScalarOpc = TargetOpcode::G_MUL;
662 case TargetOpcode::G_VECREDUCE_AND:
663 ScalarOpc = TargetOpcode::G_AND;
665 case TargetOpcode::G_VECREDUCE_OR:
666 ScalarOpc = TargetOpcode::G_OR;
668 case TargetOpcode::G_VECREDUCE_XOR:
669 ScalarOpc = TargetOpcode::G_XOR;
671 case TargetOpcode::G_VECREDUCE_SMAX:
672 ScalarOpc = TargetOpcode::G_SMAX;
674 case TargetOpcode::G_VECREDUCE_SMIN:
675 ScalarOpc = TargetOpcode::G_SMIN;
677 case TargetOpcode::G_VECREDUCE_UMAX:
678 ScalarOpc = TargetOpcode::G_UMAX;
680 case TargetOpcode::G_VECREDUCE_UMIN:
681 ScalarOpc = TargetOpcode::G_UMIN;
705 return MI->getOpcode() == TargetOpcode::G_PHI;
716 switch (
MI->getOpcode()) {
718 case TargetOpcode::G_ADD:
719 case TargetOpcode::G_SUB:
720 case TargetOpcode::G_MUL:
721 case TargetOpcode::G_SDIV:
722 case TargetOpcode::G_UDIV:
723 case TargetOpcode::G_SREM:
724 case TargetOpcode::G_UREM:
725 case TargetOpcode::G_SMIN:
726 case TargetOpcode::G_SMAX:
727 case TargetOpcode::G_UMIN:
728 case TargetOpcode::G_UMAX:
730 case TargetOpcode::G_FMINNUM:
731 case TargetOpcode::G_FMAXNUM:
732 case TargetOpcode::G_FMINNUM_IEEE:
733 case TargetOpcode::G_FMAXNUM_IEEE:
734 case TargetOpcode::G_FMINIMUM:
735 case TargetOpcode::G_FMAXIMUM:
736 case TargetOpcode::G_FADD:
737 case TargetOpcode::G_FSUB:
738 case TargetOpcode::G_FMUL:
739 case TargetOpcode::G_FDIV:
740 case TargetOpcode::G_FPOW:
742 case TargetOpcode::G_AND:
743 case TargetOpcode::G_OR:
744 case TargetOpcode::G_XOR:
756 switch (
MI->getOpcode()) {
757 case TargetOpcode::G_ADD:
758 case TargetOpcode::G_SUB:
759 case TargetOpcode::G_MUL:
760 case TargetOpcode::G_SDIV:
761 case TargetOpcode::G_UDIV:
762 case TargetOpcode::G_SREM:
763 case TargetOpcode::G_UREM:
764 case TargetOpcode::G_SMIN:
765 case TargetOpcode::G_SMAX:
766 case TargetOpcode::G_UMIN:
767 case TargetOpcode::G_UMAX:
779 switch (
MI->getOpcode()) {
780 case TargetOpcode::G_FMINNUM:
781 case TargetOpcode::G_FMAXNUM:
782 case TargetOpcode::G_FMINNUM_IEEE:
783 case TargetOpcode::G_FMAXNUM_IEEE:
784 case TargetOpcode::G_FMINIMUM:
785 case TargetOpcode::G_FMAXIMUM:
786 case TargetOpcode::G_FADD:
787 case TargetOpcode::G_FSUB:
788 case TargetOpcode::G_FMUL:
789 case TargetOpcode::G_FDIV:
790 case TargetOpcode::G_FPOW:
802 switch (
MI->getOpcode()) {
803 case TargetOpcode::G_AND:
804 case TargetOpcode::G_OR:
805 case TargetOpcode::G_XOR:
817 return MI->getOpcode() == TargetOpcode::G_ADD;
825 return MI->getOpcode() == TargetOpcode::G_AND;
833 return MI->getOpcode() == TargetOpcode::G_OR;
844 return MI->getOpcode() == TargetOpcode::G_EXTRACT_VECTOR_ELT;
856 return MI->getOpcode() == TargetOpcode::G_INSERT_VECTOR_ELT;
867 return MI->getOpcode() == TargetOpcode::G_EXTRACT_SUBVECTOR;
879 return MI->getOpcode() == TargetOpcode::G_INSERT_SUBVECTOR;
889 return MI->getOpcode() == TargetOpcode::G_FREEZE;
901 switch (
MI->getOpcode()) {
902 case TargetOpcode::G_ADDRSPACE_CAST:
903 case TargetOpcode::G_FPEXT:
904 case TargetOpcode::G_FPTOSI:
905 case TargetOpcode::G_FPTOUI:
906 case TargetOpcode::G_FPTOSI_SAT:
907 case TargetOpcode::G_FPTOUI_SAT:
908 case TargetOpcode::G_FPTRUNC:
909 case TargetOpcode::G_INTTOPTR:
910 case TargetOpcode::G_PTRTOINT:
911 case TargetOpcode::G_SEXT:
912 case TargetOpcode::G_SITOFP:
913 case TargetOpcode::G_TRUNC:
914 case TargetOpcode::G_TRUNC_SSAT_S:
915 case TargetOpcode::G_TRUNC_SSAT_U:
916 case TargetOpcode::G_TRUNC_USAT_U:
917 case TargetOpcode::G_UITOFP:
918 case TargetOpcode::G_ZEXT:
919 case TargetOpcode::G_ANYEXT:
931 return MI->getOpcode() == TargetOpcode::G_SEXT;
939 return MI->getOpcode() == TargetOpcode::G_ZEXT;
947 return MI->getOpcode() == TargetOpcode::G_ANYEXT;
955 return MI->getOpcode() == TargetOpcode::G_TRUNC;
965 return MI->getOpcode() == TargetOpcode::G_VSCALE;
977 return MI->getOpcode() == TargetOpcode::G_STEP_VECTOR;
985 return MI->getOpcode() == TargetOpcode::G_SUB;
993 return MI->getOpcode() == TargetOpcode::G_MUL;
1004 return MI->getOpcode() == TargetOpcode::G_SHL;
1017 switch (
MI->getOpcode()) {
1018 case TargetOpcode::G_SCMP:
1019 case TargetOpcode::G_UCMP:
1031 switch (
MI->getOpcode()) {
1032 case TargetOpcode::G_SEXT:
1033 case TargetOpcode::G_ZEXT:
1034 case TargetOpcode::G_ANYEXT:
1046 switch (
MI->getOpcode()) {
1047 case TargetOpcode::G_SEXT:
1048 case TargetOpcode::G_ZEXT:
1049 case TargetOpcode::G_ANYEXT:
1050 case TargetOpcode::G_TRUNC:
1064 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.
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)
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.