Home | History | Annotate | Download | only in IR

Lines Matching full:instruction

22 #include "llvm/IR/Instruction.h"
48 /// Return the opcode for this Instruction or ConstantExpr.
50 if (const Instruction *I = dyn_cast<Instruction>(this))
55 /// If V is an Instruction or ConstantExpr, return its opcode.
58 if (const Instruction *I = dyn_cast<Instruction>(V))
62 return Instruction::UserOp1;
65 static inline bool classof(const Instruction *) { return true; }
68 return isa<Instruction>(V) || isa<ConstantExpr>(V);
107 static inline bool classof(const Instruction *I) {
108 return I->getOpcode() == Instruction::Add ||
109 I->getOpcode() == Instruction::Sub ||
110 I->getOpcode() == Instruction::Mul ||
111 I->getOpcode() == Instruction::Shl;
114 return CE->getOpcode() == Instruction::Add ||
115 CE->getOpcode() == Instruction::Sub ||
116 CE->getOpcode() == Instruction::Mul ||
117 CE->getOpcode() == Instruction::Shl;
120 return (isa<Instruction>(V) && classof(cast<Instruction>(V))) ||
125 /// A udiv or sdiv instruction, which can be marked as "exact",
147 return OpC == Instruction::SDiv ||
148 OpC == Instruction::UDiv ||
149 OpC == Instruction::AShr ||
150 OpC == Instruction::LShr;
155 static inline bool classof(const Instruction *I) {
159 return (isa<Instruction>(V) && classof(cast<Instruction>(V))) ||
219 friend class Instruction;
308 static inline bool classof(const Instruction *I) {
312 return isa<Instruction>(V) && classof(cast<Instruction>(V));
321 static inline bool classof(const Instruction *I) {
328 return (isa<Instruction>(V) && classof(cast<Instruction>(V))) ||
334 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Add> {
337 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Sub> {
340 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Mul> {
343 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
348 : public ConcreteOperator<PossiblyExactOperator, Instruction::SDiv> {
351 : public ConcreteOperator<PossiblyExactOperator, Instruction::UDiv> {
354 : public ConcreteOperator<PossiblyExactOperator, Instruction::AShr> {
357 : public ConcreteOperator<PossiblyExactOperator, Instruction::LShr> {
361 class ZExtOperator : public ConcreteOperator<Operator, Instruction::ZExt> {};
365 : public ConcreteOperator<Operator, Instruction::GetElementPtr> {
486 : public ConcreteOperator<Operator, Instruction::PtrToInt> {
513 : public ConcreteOperator<Operator, Instruction