Home
last modified time | relevance | path

Searched refs:Instruction (Results 1 – 25 of 555) sorted by relevance

12345678910>>...23

/external/llvm/lib/Transforms/InstCombine/
DInstCombine.h42 if (isa<Instruction>(V)) { in getComplexity()
63 void InsertHelper(Instruction *I, const Twine &Name, in InsertHelper()
73 public InstVisitor<InstCombiner, Instruction*> {
109 Instruction *visitAdd(BinaryOperator &I);
110 Instruction *visitFAdd(BinaryOperator &I);
112 Instruction *visitSub(BinaryOperator &I);
113 Instruction *visitFSub(BinaryOperator &I);
114 Instruction *visitMul(BinaryOperator &I);
115 Instruction *visitFMul(BinaryOperator &I);
116 Instruction *visitURem(BinaryOperator &I);
[all …]
DInstCombineShifts.cpp22 Instruction *InstCombiner::commonShiftTransforms(BinaryOperator &I) { in commonShiftTransforms()
33 if (Instruction *R = FoldOpIntoSelect(I, SI)) in commonShiftTransforms()
37 if (Instruction *Res = FoldShiftByConstant(Op0, CUI, I)) in commonShiftTransforms()
74 Instruction *I = dyn_cast<Instruction>(V); in CanEvaluateShifted()
108 case Instruction::And: in CanEvaluateShifted()
109 case Instruction::Or: in CanEvaluateShifted()
110 case Instruction::Xor: in CanEvaluateShifted()
115 case Instruction::Shl: { in CanEvaluateShifted()
139 case Instruction::LShr: { in CanEvaluateShifted()
163 case Instruction::Select: { in CanEvaluateShifted()
[all …]
DInstCombineCasts.cpp44 if (I->getOpcode() == Instruction::Shl) { in DecomposeSimpleLinearExpr()
51 if (I->getOpcode() == Instruction::Mul) { in DecomposeSimpleLinearExpr()
58 if (I->getOpcode() == Instruction::Add) { in DecomposeSimpleLinearExpr()
79 Instruction *InstCombiner::PromoteCastOfAllocation(BitCastInst &CI, in PromoteCastOfAllocation()
165 Instruction *I = cast<Instruction>(V); in EvaluateInDifferentType()
166 Instruction *Res = 0; in EvaluateInDifferentType()
169 case Instruction::Add: in EvaluateInDifferentType()
170 case Instruction::Sub: in EvaluateInDifferentType()
171 case Instruction::Mul: in EvaluateInDifferentType()
172 case Instruction::And: in EvaluateInDifferentType()
[all …]
DInstCombineWorklist.h26 SmallVector<Instruction*, 256> Worklist;
27 DenseMap<Instruction*, unsigned> WorklistMap;
38 void Add(Instruction *I) { in Add()
46 if (Instruction *I = dyn_cast<Instruction>(V)) in AddValue()
53 void AddInitialGroup(Instruction *const *List, unsigned NumEntries) { in AddInitialGroup()
59 Instruction *I = List[NumEntries-1]; in AddInitialGroup()
66 void Remove(Instruction *I) { in Remove()
67 DenseMap<Instruction*, unsigned>::iterator It = WorklistMap.find(I); in Remove()
76 Instruction *RemoveOne() { in RemoveOne()
77 Instruction *I = Worklist.back(); in RemoveOne()
[all …]
DInstCombineSelect.cpp84 static unsigned GetSelectFoldableOperands(Instruction *I) { in GetSelectFoldableOperands()
86 case Instruction::Add: in GetSelectFoldableOperands()
87 case Instruction::Mul: in GetSelectFoldableOperands()
88 case Instruction::And: in GetSelectFoldableOperands()
89 case Instruction::Or: in GetSelectFoldableOperands()
90 case Instruction::Xor: in GetSelectFoldableOperands()
92 case Instruction::Sub: // Can only fold on the amount subtracted. in GetSelectFoldableOperands()
93 case Instruction::Shl: // Can only fold on the shift amount. in GetSelectFoldableOperands()
94 case Instruction::LShr: in GetSelectFoldableOperands()
95 case Instruction::AShr: in GetSelectFoldableOperands()
[all …]
/external/webkit/Source/JavaScriptCore/jit/
DJIT.h60 struct Instruction;
284 void compileOpCall(OpcodeID, Instruction* instruction, unsigned callLinkInfoIndex);
285 void compileOpCallVarargs(Instruction* instruction);
287 …void compileOpCallSlowCase(Instruction* instruction, Vector<SlowCaseEntry>::iterator& iter, unsign…
288 …void compileOpCallVarargsSlowCase(Instruction* instruction, Vector<SlowCaseEntry>::iterator& iter);
291 void compileOpStrictEq(Instruction* instruction, CompileOpStrictEqType type);
722 void emit_op_add(Instruction*);
723 void emit_op_bitand(Instruction*);
724 void emit_op_bitnot(Instruction*);
725 void emit_op_bitor(Instruction*);
[all …]
/external/llvm/include/llvm/Support/
DNoFolder.h40 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 …]
DInstVisitor.h112 RetTy visit(Instruction *I) { return visit(*I); } in visit()
116 RetTy visit(Instruction &I) { in visit()
121 case Instruction::OPCODE: return \ in visit()
171 RetTy visitStoreInst(StoreInst &I) { DELEGATE(Instruction);} in visitStoreInst()
172 RetTy visitAtomicCmpXchgInst(AtomicCmpXchgInst &I) { DELEGATE(Instruction);} in visitAtomicCmpXchgInst()
173 RetTy visitAtomicRMWInst(AtomicRMWInst &I) { DELEGATE(Instruction);} in visitAtomicRMWInst()
174 RetTy visitFenceInst(FenceInst &I) { DELEGATE(Instruction);} in visitFenceInst()
175 RetTy visitGetElementPtrInst(GetElementPtrInst &I){ DELEGATE(Instruction);} in visitGetElementPtrInst()
176 RetTy visitPHINode(PHINode &I) { DELEGATE(Instruction);} in visitPHINode()
189 RetTy visitSelectInst(SelectInst &I) { DELEGATE(Instruction);} in visitSelectInst()
[all …]
DPatternMatch.h313 inline BinaryOp_match<LHS, RHS, Instruction::Add>
315 return BinaryOp_match<LHS, RHS, Instruction::Add>(L, R); in m_Add()
319 inline BinaryOp_match<LHS, RHS, Instruction::FAdd>
321 return BinaryOp_match<LHS, RHS, Instruction::FAdd>(L, R); in m_FAdd()
325 inline BinaryOp_match<LHS, RHS, Instruction::Sub>
327 return BinaryOp_match<LHS, RHS, Instruction::Sub>(L, R); in m_Sub()
331 inline BinaryOp_match<LHS, RHS, Instruction::FSub>
333 return BinaryOp_match<LHS, RHS, Instruction::FSub>(L, R); in m_FSub()
337 inline BinaryOp_match<LHS, RHS, Instruction::Mul>
339 return BinaryOp_match<LHS, RHS, Instruction::Mul>(L, R); in m_Mul()
[all …]
/external/llvm/include/llvm/
DOperator.h44 if (const Instruction *I = dyn_cast<Instruction>(this)) in getOpcode()
53 if (const Instruction *I = dyn_cast<Instruction>(V)) in getOpcode()
57 return Instruction::UserOp1; in getOpcode()
61 static inline bool classof(const Instruction *) { return true; } in classof() argument
64 return isa<Instruction>(V) || isa<ConstantExpr>(V); in classof()
107 static inline bool classof(const Instruction *I) { in classof()
108 return I->getOpcode() == Instruction::Add || in classof()
109 I->getOpcode() == Instruction::Sub || in classof()
110 I->getOpcode() == Instruction::Mul || in classof()
111 I->getOpcode() == Instruction::Shl; in classof()
[all …]
DInstrTypes.h35 class TerminatorInst : public Instruction {
37 TerminatorInst(Type *Ty, Instruction::TermOps iType,
39 Instruction *InsertBefore = 0)
40 : Instruction(Ty, iType, Ops, NumOps, InsertBefore) {} in Instruction() function
42 TerminatorInst(Type *Ty, Instruction::TermOps iType, in TerminatorInst()
44 : Instruction(Ty, iType, Ops, NumOps, InsertAtEnd) {} in TerminatorInst()
77 static inline bool classof(const Instruction *I) { in classof()
81 return isa<Instruction>(V) && classof(cast<Instruction>(V)); in classof()
90 class UnaryInstruction : public Instruction {
95 Instruction *IB = 0)
[all …]
DInstructions.h62 const Twine &Name = "", Instruction *InsertBefore = 0);
66 AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore = 0);
70 const Twine &Name = "", Instruction *InsertBefore = 0);
91 return reinterpret_cast<PointerType*>(Instruction::getType()); in getType()
114 static inline bool classof(const Instruction *I) { in classof()
115 return (I->getOpcode() == Instruction::Alloca); in classof()
118 return isa<Instruction>(V) && classof(cast<Instruction>(V)); in classof()
124 Instruction::setInstructionSubclassData(D); in setInstructionSubclassData()
141 LoadInst(Value *Ptr, const Twine &NameStr, Instruction *InsertBefore);
144 Instruction *InsertBefore = 0);
[all …]
DBasicBlock.h30 template<> struct ilist_traits<Instruction>
31 : public SymbolTableListTraits<Instruction, BasicBlock> {
36 Instruction *createSentinel() const {
45 return static_cast<Instruction*>(&Sentinel);
47 static void destroySentinel(Instruction*) {}
49 Instruction *provideInitialHead() const { return createSentinel(); }
50 Instruction *ensureHead(Instruction*) const { return createSentinel(); }
51 static void noteHead(Instruction*, Instruction*) {}
53 mutable ilist_half_node<Instruction> Sentinel;
74 typedef iplist<Instruction> InstListType;
[all …]
DInstruction.h30 class Instruction : public User, public ilist_node<Instruction> {
31 void operator=(const Instruction &); // Do not implement
32 Instruction(const Instruction &); // Do not implement
44 ~Instruction();
48 Instruction *use_back() { return cast<Instruction>(*use_begin());} in use_back()
49 const Instruction *use_back() const { return cast<Instruction>(*use_begin());} in use_back()
66 void insertBefore(Instruction *InsertPos);
70 void insertAfter(Instruction *InsertPos);
75 void moveBefore(Instruction *MovePos);
252 Instruction *clone() const;
[all …]
/external/llvm/lib/VMCore/
DInstruction.cpp23 Instruction::Instruction(Type *ty, unsigned it, Use *Ops, unsigned NumOps, in Instruction() function in Instruction
24 Instruction *InsertBefore) in Instruction()
37 Instruction::Instruction(Type *ty, unsigned it, Use *Ops, unsigned NumOps, in Instruction() function in Instruction
50 Instruction::~Instruction() { in ~Instruction()
57 void Instruction::setParent(BasicBlock *P) { in setParent()
67 void Instruction::removeFromParent() { in removeFromParent()
71 void Instruction::eraseFromParent() { in eraseFromParent()
77 void Instruction::insertBefore(Instruction *InsertPos) { in insertBefore()
83 void Instruction::insertAfter(Instruction *InsertPos) { in insertAfter()
90 void Instruction::moveBefore(Instruction *MovePos) { in moveBefore()
[all …]
DInstructions.cpp33 Instruction *II(getInstruction()); in getCallee()
87 : Instruction(PN.getType(), Instruction::PHI, in PHINode()
175 Instruction *InsertBefore) in LandingPadInst()
176 : Instruction(RetTy, Instruction::LandingPad, 0, 0, InsertBefore) { in LandingPadInst()
183 : Instruction(RetTy, Instruction::LandingPad, 0, 0, InsertAtEnd) { in LandingPadInst()
188 : Instruction(LP.getType(), Instruction::LandingPad, in LandingPadInst()
205 Instruction *InsertBefore) { in Create()
296 Instruction *InsertBefore) in CallInst()
297 : Instruction(cast<FunctionType>(cast<PointerType>(Func->getType()) in CallInst()
299 Instruction::Call, in CallInst()
[all …]
/external/v8/src/mips/
Ddisasm-mips.cc98 void PrintRs(Instruction* instr);
99 void PrintRt(Instruction* instr);
100 void PrintRd(Instruction* instr);
101 void PrintFs(Instruction* instr);
102 void PrintFt(Instruction* instr);
103 void PrintFd(Instruction* instr);
104 void PrintSa(Instruction* instr);
105 void PrintSd(Instruction* instr);
106 void PrintSs1(Instruction* instr);
107 void PrintSs2(Instruction* instr);
[all …]
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp62 static void PrintOps(Instruction *I, const SmallVectorImpl<ValueEntry> &Ops) { in PrintOps()
64 dbgs() << Instruction::getOpcodeName(I->getOpcode()) << " " in PrintOps()
100 Value *OptimizeAdd(Instruction *I, SmallVectorImpl<ValueEntry> &Ops);
118 Instruction *Op = dyn_cast<Instruction>(V); in RemoveDeadBinaryOp()
131 static bool isUnmovableInstruction(Instruction *I) { in isUnmovableInstruction()
132 if (I->getOpcode() == Instruction::PHI || in isUnmovableInstruction()
133 I->getOpcode() == Instruction::Alloca || in isUnmovableInstruction()
134 I->getOpcode() == Instruction::Load || in isUnmovableInstruction()
135 I->getOpcode() == Instruction::Invoke || in isUnmovableInstruction()
136 (I->getOpcode() == Instruction::Call && in isUnmovableInstruction()
[all …]
/external/v8/src/arm/
Dsimulator-arm.h231 void Format(Instruction* instr, const char* format);
235 bool ConditionallyExecute(Instruction* instr);
257 int32_t GetShiftRm(Instruction* instr, bool* carry_out);
258 int32_t GetImm(Instruction* instr, bool* carry_out);
259 void ProcessPUW(Instruction* instr,
264 void HandleRList(Instruction* instr, bool load);
265 void HandleVList(Instruction* inst);
266 void SoftwareInterrupt(Instruction* instr);
269 inline bool isStopInstruction(Instruction* instr);
283 inline uint16_t ReadHU(int32_t addr, Instruction* instr);
[all …]
Ddisasm-arm.cc104 int FormatVFPRegister(Instruction* instr, const char* format);
105 void PrintMovwMovt(Instruction* instr);
106 int FormatVFPinstruction(Instruction* instr, const char* format);
107 void PrintCondition(Instruction* instr);
108 void PrintShiftRm(Instruction* instr);
109 void PrintShiftImm(Instruction* instr);
110 void PrintShiftSat(Instruction* instr);
111 void PrintPU(Instruction* instr);
115 int FormatRegister(Instruction* instr, const char* option);
116 int FormatOption(Instruction* instr, const char* option);
[all …]
/external/llvm/include/llvm/Analysis/
DMemoryDependenceAnalysis.h29 class Instruction; variable
97 typedef PointerIntPair<Instruction*, 2, DepType> PairTy;
105 static MemDepResult getDef(Instruction *Inst) { in getDef()
109 static MemDepResult getClobber(Instruction *Inst) { in getClobber()
115 PairTy(reinterpret_cast<Instruction*>(NonLocal), Other)); in getNonLocal()
119 PairTy(reinterpret_cast<Instruction*>(NonFuncLocal), Other)); in getNonFuncLocal()
123 PairTy(reinterpret_cast<Instruction*>(Unknown), Other)); in getUnknown()
139 && Value.getPointer() == reinterpret_cast<Instruction*>(NonLocal); in isNonLocal()
146 && Value.getPointer() == reinterpret_cast<Instruction*>(NonFuncLocal); in isNonFuncLocal()
153 && Value.getPointer() == reinterpret_cast<Instruction*>(Unknown); in isUnknown()
[all …]
/external/llvm/lib/Transforms/Utils/
DAddrModeMatcher.cpp101 if (isa<Instruction>(ScaleReg) && // not a constant expr. in MatchScaledValue()
109 AddrModeInsts.push_back(cast<Instruction>(ScaleReg)); in MatchScaledValue()
123 static bool MightBeFoldableInst(Instruction *I) { in MightBeFoldableInst()
125 case Instruction::BitCast: in MightBeFoldableInst()
130 case Instruction::PtrToInt: in MightBeFoldableInst()
133 case Instruction::IntToPtr: in MightBeFoldableInst()
136 case Instruction::Add: in MightBeFoldableInst()
138 case Instruction::Mul: in MightBeFoldableInst()
139 case Instruction::Shl: in MightBeFoldableInst()
142 case Instruction::GetElementPtr: in MightBeFoldableInst()
[all …]
DSimplifyIndVar.cpp74 Value *foldIVUser(Instruction *UseInst, Instruction *IVOperand);
76 bool eliminateIVUser(Instruction *UseInst, Instruction *IVOperand);
91 Value *SimplifyIndvar::foldIVUser(Instruction *UseInst, Instruction *IVOperand) { in foldIVUser()
98 case Instruction::UDiv: in foldIVUser()
99 case Instruction::LShr: in foldIVUser()
117 if (UseInst->getOpcode() == Instruction::LShr) { in foldIVUser()
239 bool SimplifyIndvar::eliminateIVUser(Instruction *UseInst, in eliminateIVUser()
240 Instruction *IVOperand) { in eliminateIVUser()
246 bool IsSigned = Rem->getOpcode() == Instruction::SRem; in eliminateIVUser()
247 if (IsSigned || Rem->getOpcode() == Instruction::URem) { in eliminateIVUser()
[all …]
/external/llvm/lib/Analysis/
DCaptureTracking.cpp98 Instruction *I = cast<Instruction>(U->getUser()); in PointerMayBeCaptured()
102 case Instruction::Call: in PointerMayBeCaptured()
103 case Instruction::Invoke: { in PointerMayBeCaptured()
126 case Instruction::Load: in PointerMayBeCaptured()
129 case Instruction::VAArg: in PointerMayBeCaptured()
132 case Instruction::Store: in PointerMayBeCaptured()
139 case Instruction::BitCast: in PointerMayBeCaptured()
140 case Instruction::GetElementPtr: in PointerMayBeCaptured()
141 case Instruction::PHI: in PointerMayBeCaptured()
142 case Instruction::Select: in PointerMayBeCaptured()
[all …]
DPHITransAddr.cpp25 static bool CanPHITrans(Instruction *Inst) { in CanPHITrans()
34 if (Inst->getOpcode() == Instruction::Add && in CanPHITrans()
56 SmallVectorImpl<Instruction*> &InstInputs) { in VerifySubExpr()
58 Instruction *I = dyn_cast<Instruction>(Expr); in VerifySubExpr()
63 SmallVectorImpl<Instruction*>::iterator Entry = in VerifySubExpr()
93 SmallVector<Instruction*, 8> Tmp(InstInputs.begin(), InstInputs.end()); in Verify()
116 Instruction *Inst = dyn_cast<Instruction>(Addr); in IsPotentiallyPHITranslatable()
122 SmallVectorImpl<Instruction*> &InstInputs) { in RemoveInstInputs()
123 Instruction *I = dyn_cast<Instruction>(V); in RemoveInstInputs()
127 SmallVectorImpl<Instruction*>::iterator Entry = in RemoveInstInputs()
[all …]

12345678910>>...23