Lines Matching refs:Opcode
148 static inline bool isUnaryOp(unsigned Opcode) {
149 return Opcode >= UnaryOpsBegin && Opcode < UnaryOpsEnd;
151 static inline bool isBinaryOp(unsigned Opcode) {
152 return Opcode >= BinaryOpsBegin && Opcode < BinaryOpsEnd;
155 static inline bool isIntDivRem(unsigned Opcode) {
156 return Opcode == UDiv || Opcode == SDiv || Opcode == URem || Opcode == SRem;
159 /// Determine if the Opcode is one of the shift instructions.
160 static inline bool isShift(unsigned Opcode) {
161 return Opcode >= Shl && Opcode <= AShr;
174 /// Determine if the Opcode is and/or/xor.
175 static inline bool isBitwiseLogicOp(unsigned Opcode) {
176 return Opcode == And || Opcode == Or || Opcode == Xor;
486 static bool isAssociative(unsigned Opcode) {
487 return Opcode == And || Opcode == Or || Opcode == Xor ||
488 Opcode == Add || Opcode == Mul;
499 static bool isCommutative(unsigned Opcode) {
500 switch (Opcode) {
517 static bool isIdempotent(unsigned Opcode) {
518 return Opcode == And || Opcode == Or;
531 static bool isNilpotent(unsigned Opcode) {
532 return Opcode == Xor;