/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineInternal.h | 53 if (isa<Instruction>(V)) { in getComplexity() 95 if (BO->getOpcode() == Instruction::Add || in IsFreeToInvert() 96 BO->getOpcode() == Instruction::Sub) in IsFreeToInvert() 149 void InsertHelper(Instruction *I, const Twine &Name, BasicBlock *BB, in InsertHelper() 166 : public InstVisitor<InstCombiner, Instruction *> { 226 Instruction *visitAdd(BinaryOperator &I); 227 Instruction *visitFAdd(BinaryOperator &I); 229 Instruction *visitSub(BinaryOperator &I); 230 Instruction *visitFSub(BinaryOperator &I); 231 Instruction *visitMul(BinaryOperator &I); [all …]
|
D | InstCombineVectorOps.cpp | 41 Instruction *I = dyn_cast<Instruction>(V); in cheapToScalarize() 46 if (I->getOpcode() == Instruction::InsertElement && isConstant && in cheapToScalarize() 49 if (I->getOpcode() == Instruction::Load && I->hasOneUse()) in cheapToScalarize() 68 Instruction *InstCombiner::scalarizePHI(ExtractElementInst &EI, PHINode *PN) { in scalarizePHI() 77 Instruction *PHIUser = dyn_cast<Instruction>(*iu); in scalarizePHI() 78 if (PHIUser == cast<Instruction>(&EI)) in scalarizePHI() 79 PHIUser = cast<Instruction>(*(++iu)); in scalarizePHI() 113 Instruction *newEI = ExtractElementInst::Create(PHIInVal, Elt, ""); in scalarizePHI() 115 Instruction *pos = dyn_cast<Instruction>(PHIInVal); in scalarizePHI() 131 Instruction *InstCombiner::visitExtractElementInst(ExtractElementInst &EI) { in visitExtractElementInst() [all …]
|
D | InstCombineCasts.cpp | 46 if (I->getOpcode() == Instruction::Shl) { in decomposeSimpleLinearExpr() 53 if (I->getOpcode() == Instruction::Mul) { in decomposeSimpleLinearExpr() 60 if (I->getOpcode() == Instruction::Add) { in decomposeSimpleLinearExpr() 81 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation() 170 Instruction *I = cast<Instruction>(V); in EvaluateInDifferentType() 171 Instruction *Res = nullptr; in EvaluateInDifferentType() 174 case Instruction::Add: in EvaluateInDifferentType() 175 case Instruction::Sub: in EvaluateInDifferentType() 176 case Instruction::Mul: in EvaluateInDifferentType() 177 case Instruction::And: in EvaluateInDifferentType() [all …]
|
/external/llvm/lib/IR/ |
D | Instruction.cpp | 23 Instruction::Instruction(Type *ty, unsigned it, Use *Ops, unsigned NumOps, in Instruction() function in Instruction 24 Instruction *InsertBefore) in Instruction() 35 Instruction::Instruction(Type *ty, unsigned it, Use *Ops, unsigned NumOps, in Instruction() function in Instruction 46 Instruction::~Instruction() { in ~Instruction() 53 void Instruction::setParent(BasicBlock *P) { in setParent() 57 const Module *Instruction::getModule() const { in getModule() 61 Module *Instruction::getModule() { in getModule() 65 Function *Instruction::getFunction() { return getParent()->getParent(); } in getFunction() 67 const Function *Instruction::getFunction() const { in getFunction() 71 void Instruction::removeFromParent() { in removeFromParent() [all …]
|
/external/vixl/src/vixl/a64/ |
D | disasm-a64.h | 46 #define DECLARE(A) virtual void Visit##A(const Instruction* instr); 51 virtual void ProcessOutput(const Instruction* instr); 59 virtual void AppendRegisterNameToOutput(const Instruction* instr, 64 virtual void AppendPCRelativeOffsetToOutput(const Instruction* instr, 69 virtual void AppendCodeRelativeAddressToOutput(const Instruction* instr, 77 virtual void AppendCodeRelativeCodeAddressToOutput(const Instruction* instr, 83 virtual void AppendCodeRelativeDataAddressToOutput(const Instruction* instr, 88 virtual void AppendAddressToOutput(const Instruction* instr, 90 virtual void AppendCodeAddressToOutput(const Instruction* instr, 92 virtual void AppendDataAddressToOutput(const Instruction* instr, [all …]
|
D | instrument-a64.cc | 257 void Instrument::VisitPCRelAddressing(const Instruction* instr) { in VisitPCRelAddressing() 265 void Instrument::VisitAddSubImmediate(const Instruction* instr) { in VisitAddSubImmediate() 273 void Instrument::VisitLogicalImmediate(const Instruction* instr) { in VisitLogicalImmediate() 281 void Instrument::VisitMoveWideImmediate(const Instruction* instr) { in VisitMoveWideImmediate() 294 void Instrument::VisitBitfield(const Instruction* instr) { in VisitBitfield() 302 void Instrument::VisitExtract(const Instruction* instr) { in VisitExtract() 310 void Instrument::VisitUnconditionalBranch(const Instruction* instr) { in VisitUnconditionalBranch() 318 void Instrument::VisitUnconditionalBranchToRegister(const Instruction* instr) { in VisitUnconditionalBranchToRegister() 326 void Instrument::VisitCompareBranch(const Instruction* instr) { in VisitCompareBranch() 334 void Instrument::VisitTestBranch(const Instruction* instr) { in VisitTestBranch() [all …]
|
/external/llvm/include/llvm/IR/ |
D | NoFolder.h | 40 Instruction *CreateAdd(Constant *LHS, Constant *RHS, 47 Instruction *CreateNSWAdd(Constant *LHS, Constant *RHS) const { in CreateNSWAdd() 50 Instruction *CreateNUWAdd(Constant *LHS, Constant *RHS) const { in CreateNUWAdd() 53 Instruction *CreateFAdd(Constant *LHS, Constant *RHS) const { in CreateFAdd() 56 Instruction *CreateSub(Constant *LHS, Constant *RHS, 63 Instruction *CreateNSWSub(Constant *LHS, Constant *RHS) const { in CreateNSWSub() 66 Instruction *CreateNUWSub(Constant *LHS, Constant *RHS) const { in CreateNUWSub() 69 Instruction *CreateFSub(Constant *LHS, Constant *RHS) const { in CreateFSub() 72 Instruction *CreateMul(Constant *LHS, Constant *RHS, 79 Instruction *CreateNSWMul(Constant *LHS, Constant *RHS) const { in CreateNSWMul() [all …]
|
D | Operator.h | 49 if (const Instruction *I = dyn_cast<Instruction>(this)) in getOpcode() 57 if (const Instruction *I = dyn_cast<Instruction>(V)) in getOpcode() 61 return Instruction::UserOp1; in getOpcode() 64 static inline bool classof(const Instruction *) { return true; } in classof() argument 67 return isa<Instruction>(V) || isa<ConstantExpr>(V); in classof() 106 static inline bool classof(const Instruction *I) { in classof() 107 return I->getOpcode() == Instruction::Add || in classof() 108 I->getOpcode() == Instruction::Sub || in classof() 109 I->getOpcode() == Instruction::Mul || in classof() 110 I->getOpcode() == Instruction::Shl; in classof() [all …]
|
D | Instructions.h | 82 friend class Instruction; 88 Instruction *InsertBefore = nullptr); 92 AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore = nullptr); 96 const Twine &Name = "", Instruction *InsertBefore = nullptr); 117 return cast<PointerType>(Instruction::getType()); in getType() 156 static inline bool classof(const Instruction *I) { in classof() 157 return (I->getOpcode() == Instruction::Alloca); in classof() 160 return isa<Instruction>(V) && classof(cast<Instruction>(V)); in classof() 167 Instruction::setInstructionSubclassData(D); in setInstructionSubclassData() 183 friend class Instruction; [all …]
|
D | Instruction.h | 33 struct SymbolTableListSentinelTraits<Instruction> 34 : public ilist_half_embedded_sentinel_traits<Instruction> {}; 36 class Instruction : public User, 37 public ilist_node_with_parent<Instruction, BasicBlock> { 38 void operator=(const Instruction &) = delete; 39 Instruction(const Instruction &) = delete; 51 ~Instruction() override; 55 Instruction *user_back() { return cast<Instruction>(*user_begin());} 56 const Instruction *user_back() const { return cast<Instruction>(*user_begin());} 85 SymbolTableList<Instruction>::iterator eraseFromParent(); [all …]
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/ |
D | InstructionFactory.java | 36 import org.jf.dexlib2.iface.instruction.Instruction; 45 Instruction makeInstruction10t(@Nonnull Opcode opcode, int codeOffset); in makeInstruction10t() 46 Instruction makeInstruction10x(@Nonnull Opcode opcode); in makeInstruction10x() 47 Instruction makeInstruction11n(@Nonnull Opcode opcode, int registerA, int literal); in makeInstruction11n() 48 Instruction makeInstruction11x(@Nonnull Opcode opcode, int registerA); in makeInstruction11x() 49 Instruction makeInstruction12x(@Nonnull Opcode opcode, int registerA, int registerB); in makeInstruction12x() 50 …Instruction makeInstruction20bc(@Nonnull Opcode opcode, int verificationError, @Nonnull Ref refere… in makeInstruction20bc() 51 Instruction makeInstruction20t(@Nonnull Opcode opcode, int codeOffset); in makeInstruction20t() 52 Instruction makeInstruction21c(@Nonnull Opcode opcode, int registerA, @Nonnull Ref reference); in makeInstruction21c() 53 Instruction makeInstruction21ih(@Nonnull Opcode opcode, int registerA, int literal); in makeInstruction21ih() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreLowerThreadLocal.cpp | 77 static Instruction * 78 createReplacementInstr(ConstantExpr *CE, Instruction *Instr) { in createReplacementInstr() 82 case Instruction::GetElementPtr: { in createReplacementInstr() 85 return dyn_cast<Instruction>(Builder.CreateInBoundsGEP( in createReplacementInstr() 89 case Instruction::Add: in createReplacementInstr() 90 case Instruction::Sub: in createReplacementInstr() 91 case Instruction::Mul: in createReplacementInstr() 92 case Instruction::UDiv: in createReplacementInstr() 93 case Instruction::SDiv: in createReplacementInstr() 94 case Instruction::FDiv: in createReplacementInstr() [all …]
|
/external/v8/src/arm64/ |
D | disasm-arm64.h | 25 #define DECLARE(A) void Visit##A(Instruction* instr); 30 virtual void ProcessOutput(Instruction* instr); 32 void Format(Instruction* instr, const char* mnemonic, const char* format); 33 void Substitute(Instruction* instr, const char* string); 34 int SubstituteField(Instruction* instr, const char* format); 35 int SubstituteRegisterField(Instruction* instr, const char* format); 36 int SubstituteImmediateField(Instruction* instr, const char* format); 37 int SubstituteLiteralField(Instruction* instr, const char* format); 38 int SubstituteBitfieldImmediateField(Instruction* instr, const char* format); 39 int SubstituteShiftField(Instruction* instr, const char* format); [all …]
|
D | instrument-arm64.cc | 233 void Instrument::VisitPCRelAddressing(Instruction* instr) { in VisitPCRelAddressing() 240 void Instrument::VisitAddSubImmediate(Instruction* instr) { in VisitAddSubImmediate() 255 void Instrument::VisitLogicalImmediate(Instruction* instr) { in VisitLogicalImmediate() 262 void Instrument::VisitMoveWideImmediate(Instruction* instr) { in VisitMoveWideImmediate() 275 void Instrument::VisitBitfield(Instruction* instr) { in VisitBitfield() 282 void Instrument::VisitExtract(Instruction* instr) { in VisitExtract() 289 void Instrument::VisitUnconditionalBranch(Instruction* instr) { in VisitUnconditionalBranch() 296 void Instrument::VisitUnconditionalBranchToRegister(Instruction* instr) { in VisitUnconditionalBranchToRegister() 303 void Instrument::VisitCompareBranch(Instruction* instr) { in VisitCompareBranch() 310 void Instrument::VisitTestBranch(Instruction* instr) { in VisitTestBranch() [all …]
|
/external/llvm/lib/Transforms/Scalar/ |
D | Float2Int.cpp | 68 void findRoots(Function &F, SmallPtrSet<Instruction*,8> &Roots); 69 ConstantRange seen(Instruction *I, ConstantRange R); 73 void walkBackwards(const SmallPtrSetImpl<Instruction*> &Roots); 76 Value *convert(Instruction *I, Type *ToTy); 79 MapVector<Instruction*, ConstantRange > SeenInsts; 80 SmallPtrSet<Instruction*,8> Roots; 81 EquivalenceClasses<Instruction*> ECs; 82 MapVector<Instruction*, Value*> ConvertedInsts; 121 static Instruction::BinaryOps mapBinOpcode(unsigned Opcode) { in mapBinOpcode() 124 case Instruction::FAdd: return Instruction::Add; in mapBinOpcode() [all …]
|
D | LoopRerollPass.cpp | 167 typedef SmallVector<Instruction *, 16> SmallInstructionVector; 168 typedef SmallSet<Instruction *, 16> SmallInstructionSet; 171 DenseMap<Instruction *, int64_t> IVToIncMap; 177 SimpleLoopReduction(Instruction *P, Loop *L) in SimpleLoopReduction() 187 Instruction *getPHI() const { in getPHI() 192 Instruction *getReducedValue() const { in getReducedValue() 197 Instruction *get(size_t i) const { in get() 202 Instruction *operator [] (size_t i) const { return get(i); } in operator []() 264 for (Instruction *J : PossibleReds[i]) { in restrictToScale() 275 bool isPairInSame(Instruction *J1, Instruction *J2) { in isPairInSame() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | LoopUtils.h | 91 RecurrenceDescriptor(Value *Start, Instruction *Exit, RecurrenceKind K, in RecurrenceDescriptor() 92 MinMaxRecurrenceKind MK, Instruction *UAI, Type *RT, in RecurrenceDescriptor() 93 bool Signed, SmallPtrSetImpl<Instruction *> &CI) in RecurrenceDescriptor() 103 InstDesc(bool IsRecur, Instruction *I, Instruction *UAI = nullptr) 107 InstDesc(Instruction *I, MinMaxRecurrenceKind K, Instruction *UAI = nullptr) 115 Instruction *getUnsafeAlgebraInst() { return UnsafeAlgebraInst; } in getUnsafeAlgebraInst() 119 Instruction *getPatternInst() { return PatternLastInst; } in getPatternInst() 126 Instruction *PatternLastInst; 130 Instruction *UnsafeAlgebraInst; 138 static InstDesc isRecurrenceInstr(Instruction *I, RecurrenceKind Kind, [all …]
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 82 case Instruction::GetElementPtr: in getIntImmCost() 89 case Instruction::Store: in getIntImmCost() 99 case Instruction::ICmp: in getIntImmCost() 109 case Instruction::Add: in getIntImmCost() 110 case Instruction::Sub: in getIntImmCost() 120 case Instruction::Mul: in getIntImmCost() 127 case Instruction::Or: in getIntImmCost() 128 case Instruction::Xor: in getIntImmCost() 138 case Instruction::And: in getIntImmCost() 156 case Instruction::Shl: in getIntImmCost() [all …]
|
/external/v8/src/mips64/ |
D | disasm-mips64.cc | 71 void PrintRs(Instruction* instr); 72 void PrintRt(Instruction* instr); 73 void PrintRd(Instruction* instr); 74 void PrintFs(Instruction* instr); 75 void PrintFt(Instruction* instr); 76 void PrintFd(Instruction* instr); 77 void PrintSa(Instruction* instr); 78 void PrintLsaSa(Instruction* instr); 79 void PrintSd(Instruction* instr); 80 void PrintSs1(Instruction* instr); [all …]
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 54 unsigned getInstructionCost(const Instruction *I) const; 378 unsigned CostModelAnalysis::getInstructionCost(const Instruction *I) const { in getInstructionCost() 383 case Instruction::GetElementPtr: in getInstructionCost() 386 case Instruction::Ret: in getInstructionCost() 387 case Instruction::PHI: in getInstructionCost() 388 case Instruction::Br: { in getInstructionCost() 391 case Instruction::Add: in getInstructionCost() 392 case Instruction::FAdd: in getInstructionCost() 393 case Instruction::Sub: in getInstructionCost() 394 case Instruction::FSub: in getInstructionCost() [all …]
|
/external/v8/src/mips/ |
D | disasm-mips.cc | 70 void PrintRs(Instruction* instr); 71 void PrintRt(Instruction* instr); 72 void PrintRd(Instruction* instr); 73 void PrintFs(Instruction* instr); 74 void PrintFt(Instruction* instr); 75 void PrintFd(Instruction* instr); 76 void PrintSa(Instruction* instr); 77 void PrintLsaSa(Instruction* instr); 78 void PrintSd(Instruction* instr); 79 void PrintSs1(Instruction* instr); [all …]
|
/external/llvm/lib/Transforms/Vectorize/ |
D | SLPVectorizer.cpp | 120 Instruction *I0 = dyn_cast<Instruction>(VL[0]); in getSameBlock() 125 Instruction *I = dyn_cast<Instruction>(VL[i]); in getSameBlock() 155 case Instruction::FAdd: in getAltOpcode() 156 return Instruction::FSub; in getAltOpcode() 157 case Instruction::FSub: in getAltOpcode() 158 return Instruction::FAdd; in getAltOpcode() 159 case Instruction::Add: in getAltOpcode() 160 return Instruction::Sub; in getAltOpcode() 161 case Instruction::Sub: in getAltOpcode() 162 return Instruction::Add; in getAltOpcode() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUtils.cpp | 29 bool RecurrenceDescriptor::areAllUsesIn(Instruction *I, in areAllUsesIn() 30 SmallPtrSetImpl<Instruction *> &Set) { in areAllUsesIn() 32 if (!Set.count(dyn_cast<Instruction>(*Use))) in areAllUsesIn() 69 Instruction * 71 SmallPtrSetImpl<Instruction *> &Visited, in lookThroughAnd() 72 SmallPtrSetImpl<Instruction *> &CI) { in lookThroughAnd() 77 Instruction *I, *J = cast<Instruction>(Phi->use_begin()->getUser()); in lookThroughAnd() 95 Instruction *Start, Instruction *Exit, Type *RT, bool &IsSigned, in getSourceExtensionKind() 96 SmallPtrSetImpl<Instruction *> &Visited, in getSourceExtensionKind() 97 SmallPtrSetImpl<Instruction *> &CI) { in getSourceExtensionKind() [all …]
|
/external/llvm/unittests/Transforms/Utils/ |
D | IntegerDivision.cpp | 42 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SDiv); in TEST() 47 EXPECT_TRUE(BB->front().getOpcode() == Instruction::AShr); in TEST() 49 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() 50 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub); in TEST() 72 EXPECT_TRUE(BB->front().getOpcode() == Instruction::UDiv); in TEST() 77 EXPECT_TRUE(BB->front().getOpcode() == Instruction::ICmp); in TEST() 79 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() 80 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI); in TEST() 102 EXPECT_TRUE(BB->front().getOpcode() == Instruction::SRem); in TEST() 107 EXPECT_TRUE(BB->front().getOpcode() == Instruction::AShr); in TEST() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | ValueTracking.h | 29 class Instruction; variable 48 const Instruction *CxtI = nullptr, 58 const Instruction *CxtI = nullptr, 66 const Instruction *CxtI = nullptr, 77 const Instruction *CxtI = nullptr, 86 const Instruction *CxtI = nullptr, 92 const Instruction *CxtI = nullptr, 99 const Instruction *CxtI = nullptr, 113 const Instruction *CxtI = nullptr, 126 const Instruction *CxtI = nullptr, [all …]
|