Home | History | Annotate | Download | only in IR

Lines Matching defs:Opcode

195 const char *Instruction::getOpcodeName(unsigned OpCode) {
196 switch (OpCode) {
350 // We have two instructions of identical opcode and #operands. Check to see
379 // We have two instructions of identical opcode and #operands. Check to see
493 bool Instruction::isAssociative(unsigned Opcode) {
494 return Opcode == And || Opcode == Or || Opcode == Xor ||
495 Opcode == Add || Opcode == Mul;
499 unsigned Opcode = getOpcode();
500 if (isAssociative(Opcode))
503 switch (Opcode) {
540 bool Instruction::isIdempotent(unsigned Opcode) {
541 return Opcode == And || Opcode == Or;
553 bool Instruction::isNilpotent(unsigned Opcode) {
554 return Opcode == Xor;
565 llvm_unreachable("Unhandled Opcode.");