Home
last modified time | relevance | path

Searched refs:getNumOperands (Results 1 – 25 of 338) sorted by relevance

12345678910>>...14

/external/llvm/lib/Target/X86/InstPrinter/
DX86InstComments.cpp71 if(MI->getOperand(MI->getNumOperands()-1).isImm()) in EmitAnyX86InstComments()
73 MI->getOperand(MI->getNumOperands()-1).getImm(), in EmitAnyX86InstComments()
82 if(MI->getOperand(MI->getNumOperands()-1).isImm()) in EmitAnyX86InstComments()
84 MI->getOperand(MI->getNumOperands()-1).getImm(), in EmitAnyX86InstComments()
95 if(MI->getOperand(MI->getNumOperands()-1).isImm()) in EmitAnyX86InstComments()
97 MI->getOperand(MI->getNumOperands()-1).getImm(), in EmitAnyX86InstComments()
105 if(MI->getOperand(MI->getNumOperands()-1).isImm()) in EmitAnyX86InstComments()
107 MI->getOperand(MI->getNumOperands()-1).getImm(), in EmitAnyX86InstComments()
119 if(MI->getOperand(MI->getNumOperands()-1).isImm()) in EmitAnyX86InstComments()
121 MI->getOperand(MI->getNumOperands()-1).getImm(), in EmitAnyX86InstComments()
[all …]
/external/llvm/unittests/IR/
DMDBuilderTest.cpp38 EXPECT_EQ(MD1->getNumOperands(), 1U); in TEST_F()
52 EXPECT_EQ(R1->getNumOperands(), 2U); in TEST_F()
65 EXPECT_GE(R0->getNumOperands(), 1U); in TEST_F()
66 EXPECT_GE(R1->getNumOperands(), 1U); in TEST_F()
69 EXPECT_TRUE(R0->getNumOperands() == 1 || R0->getOperand(1) == nullptr); in TEST_F()
70 EXPECT_TRUE(R1->getNumOperands() == 1 || R1->getOperand(1) == nullptr); in TEST_F()
77 EXPECT_GE(R0->getNumOperands(), 1U); in TEST_F()
80 EXPECT_TRUE(R0->getNumOperands() == 1 || R0->getOperand(1) == nullptr); in TEST_F()
92 EXPECT_GE(N0->getNumOperands(), 2U); in TEST_F()
93 EXPECT_GE(N1->getNumOperands(), 2U); in TEST_F()
[all …]
/external/llvm/lib/IR/
DDebugInfo.cpp56 if (!DbgNode || Elt >= DbgNode->getNumOperands()) in getField()
79 if (Elt < DbgNode->getNumOperands()) in getUInt64Field()
91 if (Elt < DbgNode->getNumOperands()) in getInt64Field()
108 if (Elt < DbgNode->getNumOperands()) in getGlobalVariableField()
117 if (Elt < DbgNode->getNumOperands()) in getConstantField()
126 if (Elt < DbgNode->getNumOperands()) in getFunctionField()
135 if (Elt < DbgNode->getNumOperands()) { in replaceFunctionField()
143 if (Idx < ComplexExpr->getNumOperands()) in getAddrElement()
301 (DbgNode->getNumOperands() == 3); in isLexicalBlockFile()
307 (DbgNode->getNumOperands() > 3); in isLexicalBlock()
[all …]
DMetadata.cpp105 assert(Op <= N->getNumOperands() && "Invalid operand number"); in getOperandPtr()
171 for (unsigned i = 0, e = N->getNumOperands(); i != e; ++i) { in assertLocalFunction()
197 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) in getFunction()
309 assert(i < getNumOperands() && "Invalid operand number"); in getOperand()
318 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) in Profile()
396 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { in replaceOperand()
471 int AN = A->getNumOperands() / 2; in getMostGenericRange()
472 int BN = B->getNumOperands() / 2; in getMostGenericRange()
541 unsigned NamedMDNode::getNumOperands() const { in getNumOperands() function in NamedMDNode
547 assert(i < getNumOperands() && "Invalid Operand number!"); in getOperand()
DInstruction.cpp331 getNumOperands() != I->getNumOperands() || in isIdenticalToWhenDefined()
336 if (getNumOperands() == 0 && I->getNumOperands() == 0) in isIdenticalToWhenDefined()
362 getNumOperands() != I->getNumOperands() || in isSameOperationAs()
370 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) in isSameOperationAs()
DInstructions.cpp89 allocHungoffUses(PN.getNumOperands()), PN.getNumOperands()), in PHINode()
90 ReservedSpace(PN.getNumOperands()) { in PHINode()
130 if (getNumOperands() == 0 && DeletePHIIfEmpty) { in removeIncomingValue()
143 unsigned e = getNumOperands(); in growOperands()
196 allocHungoffUses(LP.getNumOperands()), LP.getNumOperands()), in LandingPadInst()
197 ReservedSpace(LP.getNumOperands()) { in LandingPadInst()
238 unsigned e = getNumOperands(); in growOperands()
252 unsigned OpNo = getNumOperands(); in addClause()
324 OperandTraits<CallInst>::op_end(this) - CI.getNumOperands(), in CallInst()
325 CI.getNumOperands()) { in CallInst()
[all …]
/external/llvm/include/llvm/IR/
DOperandTraits.h53 return U->getNumOperands(); in operands()
68 return reinterpret_cast<Use*>(U) - static_cast<User*>(U)->getNumOperands(); in op_begin()
74 return U->getNumOperands(); in operands()
98 return U->OperandList + U->getNumOperands(); in op_end()
101 return U->getNumOperands(); in operands()
120 inline unsigned getNumOperands() const
147 unsigned CLASS::getNumOperands() const { \
DMetadata.h147 unsigned getNumOperands() const { return NumOperands; }
266 unsigned getNumOperands() const;
285 op_iterator op_end() { return op_iterator(this, getNumOperands()); }
289 const_op_iterator op_end() const { return const_op_iterator(this, getNumOperands()); }
/external/llvm/lib/Analysis/
DTypeBasedAliasAnalysis.cpp155 if (Node->getNumOperands() < 2) in getParent()
168 if (Node->getNumOperands() < 3) in TypeIsImmutable()
203 if (Node->getNumOperands() < 4) in TypeIsImmutable()
230 if (Node->getNumOperands() < 2) in getParent()
235 if (Node->getNumOperands() <= 3) { in getParent()
236 uint64_t Cur = Node->getNumOperands() == 2 ? 0 : in getParent()
248 for (unsigned Idx = 1; Idx < Node->getNumOperands(); Idx += 2) { in getParent()
260 TheIdx = Node->getNumOperands() - 2; in getParent()
334 return isa<MDNode>(MD->getOperand(0)) && MD->getNumOperands() >= 3; in isStructPathTBAA()
543 if (getNumOperands() < 1) return false; in isTBAAVtableAccess()
[all …]
DPHITransAddr.cpp82 for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) in VerifySubExpr()
139 for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) { in RemoveInstInputs()
180 for (unsigned i = 0, e = Inst->getNumOperands(); i != e; ++i) in PHITranslateSubExpr()
219 for (unsigned i = 0, e = GEP->getNumOperands(); i != e; ++i) { in PHITranslateSubExpr()
243 GEPI->getNumOperands() == GEPOps.size() && in PHITranslateSubExpr()
400 for (unsigned i = 0, e = GEP->getNumOperands(); i != e; ++i) { in InsertPHITranslatedSubExpr()
/external/llvm/lib/CodeGen/
DMachineInstr.cpp519 if (TBAAInfo->getNumOperands() > 0) in operator <<()
555 if (unsigned NumOps = MCID->getNumOperands() + in MachineInstr()
572 CapOperands = OperandCapacity::get(MI.getNumOperands()); in MachineInstr()
576 for (unsigned i = 0; i != MI.getNumOperands(); ++i) in MachineInstr()
596 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) in RemoveRegOperandsFromUseLists()
605 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) in AddRegOperandsToUseLists()
658 unsigned OpNo = getNumOperands(); in addOperand()
673 OpNo < MCID->getNumOperands() || isMetaDataOp) && in addOperand()
683 if (!OldOperands || OldCap.getSize() == getNumOperands()) { in addOperand()
735 assert(OpNo < getNumOperands() && "Invalid operand number"); in RemoveOperand()
[all …]
DDeadMachineInstructionElim.cpp67 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in isDead()
127 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in runOnMachineFunction()
146 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in runOnMachineFunction()
165 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in runOnMachineFunction()
DTwoAddressInstructionPass.cpp194 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in sink3AddrInstruction()
267 for (unsigned i = 0, e = OtherMI->getNumOperands(); i != e; ++i) { in sink3AddrInstruction()
435 for (unsigned i = 0, NumOps = MI.getNumOperands(); i != NumOps; ++i) { in isTwoAddrUse()
799 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in rescheduleMIBelowKill()
842 for (unsigned i = 0, e = OtherMI->getNumOperands(); i != e; ++i) { in rescheduleMIBelowKill()
983 for (unsigned i = 0, e = KillMI->getNumOperands(); i != e; ++i) { in rescheduleKillAboveMI()
1022 for (unsigned i = 0, e = OtherMI->getNumOperands(); i != e; ++i) { in rescheduleKillAboveMI()
1115 if (MI.isCommutable() && MI.getNumOperands() >= 3 && in tryInstructionTransform()
1230 for (unsigned i = 0, e = MI.getNumOperands(); i != e; ++i) { in tryInstructionTransform()
1299 unsigned NumOps = MI->getNumOperands(); in collectTiedOperands()
[all …]
DCriticalAntiDepBreaker.cpp177 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in PrescanInstruction()
184 if (i < MI->getDesc().getNumOperands()) in PrescanInstruction()
252 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in ScanInstruction()
300 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in ScanInstruction()
308 if (i < MI->getDesc().getNumOperands()) in ScanInstruction()
369 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in isNewRegClobberedByRefs()
621 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in BreakAntiDependencies()
DExpandPostRAPseudos.cpp71 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in TransferImplicitDefs()
152 if (SrcMO.isUndef() || MI->getNumOperands() > 2) { in LowerCopy()
168 if (MI->getNumOperands() > 2) in LowerCopy()
DRegisterScavenging.cpp127 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in determineKillsAndDefs()
201 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in forward()
308 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in findSurvivorReg()
356 assert(i < MI->getNumOperands() && in getFrameIndexOperandNum()
370 for (unsigned i = 0, e = I->getNumOperands(); i != e; ++i) { in scavengeRegister()
DMachineLICM.cpp415 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in ProcessMI()
540 for (unsigned i = 0, e = TI->getNumOperands(); i != e; ++i) { in HoistRegionPostRA()
569 for (unsigned j = 0, ee = MI->getNumOperands(); j != ee; ++j) { in HoistRegionPostRA()
599 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in AddToLiveIns()
817 for (unsigned i = 0, e = MI->getDesc().getNumOperands(); i != e; ++i) { in InitRegPressure()
849 for (unsigned i = 0, e = MI->getDesc().getNumOperands(); i != e; ++i) { in UpdateRegPressure()
926 for (unsigned i = 0, e = I.getNumOperands(); i != e; ++i) { in IsLoopInvariantInst()
1020 for (unsigned i = 0, e = UseMI.getNumOperands(); i != e; ++i) { in HasHighOperandLatency()
1049 for (unsigned i = 0, e = MI.getNumOperands(); NumDefs && i != e; ++i) { in IsCheapInstruction()
1105 for (unsigned i = 0, e = MI->getDesc().getNumOperands(); i != e; ++i) { in UpdateBackTraceRegPressure()
[all …]
/external/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinterInlineAsm.cpp61 if (ErrorLine >= LocInfo->getNumOperands()) in srcMgrDiagHandler()
64 if (LocInfo->getNumOperands() != 0) in srcMgrDiagHandler()
166 unsigned NumOperands = MI->getNumOperands(); in EmitMSInlineAsmStr()
220 if (OpNo >= MI->getNumOperands()) break; in EmitMSInlineAsmStr()
228 if (OpNo >= MI->getNumOperands() || in EmitMSInlineAsmStr()
262 unsigned NumOperands = MI->getNumOperands(); in EmitGCCInlineAsmStr()
386 if (OpNo >= MI->getNumOperands()) break; in EmitGCCInlineAsmStr()
394 if (OpNo >= MI->getNumOperands() || in EmitGCCInlineAsmStr()
438 assert(NumDefs != MI->getNumOperands()-2 && "No asm string?"); in EmitInlineAsm()
461 for (unsigned i = MI->getNumOperands(); i != 0; --i) { in EmitInlineAsm()
[all …]
/external/llvm/include/llvm/Analysis/
DScalarEvolutionExpressions.h148 size_t getNumOperands() const { return NumOperands; } in getNumOperands() function
220 return getOperand(getNumOperands() - 1)->getType(); in getType()
317 return getNumOperands() == 2; in isAffine()
324 return getNumOperands() == 3; in isQuadratic()
672 for (int i = 0, e = Expr->getNumOperands(); i < e; ++i) in visitAddExpr()
679 for (int i = 0, e = Expr->getNumOperands(); i < e; ++i) in visitMulExpr()
690 for (int i = 0, e = Expr->getNumOperands(); i < e; ++i) in visitAddRecExpr()
698 for (int i = 0, e = Expr->getNumOperands(); i < e; ++i) in visitSMaxExpr()
705 for (int i = 0, e = Expr->getNumOperands(); i < e; ++i) in visitUMaxExpr()
768 for (int i = 0, e = Expr->getNumOperands(); i < e; ++i) in visitAddExpr()
[all …]
DConstantsScanner.h33 assert(!InstI.atEnd() && OpIdx < InstI->getNumOperands() && in isAtConstant()
42 (InstI->getNumOperands() == 0 || !isAtConstant())) // Not at constant? in constant_iterator()
63 unsigned NumOperands = InstI->getNumOperands();
/external/llvm/lib/CodeGen/SelectionDAG/
DInstrEmitter.cpp62 unsigned N = Node->getNumOperands(); in countOperands()
123 for (unsigned i = 0, e = User->getNumOperands(); i != e; ++i) { in EmitCopyFromReg()
134 if (i+II.getNumDefs() < II.getNumOperands()) { in EmitCopyFromReg()
321 bool isOptDef = IIOpNum < MCID.getNumOperands() && in AddRegisterOperand()
330 if (IIOpNum < II->getNumOperands()) in AddRegisterOperand()
352 unsigned Idx = MIB->getNumOperands(); in AddRegisterOperand()
386 bool Imp = II && (IIOpNum >= II->getNumOperands() && !II->isVariadic()); in AddOperand()
608 unsigned NumOps = Node->getNumOperands(); in EmitRegSequence()
670 AddOperand(MIB, Op, (*MIB).getNumOperands(), &II, VRBaseMap, in EmitDbgValue()
756 countOperands(Node, II.getNumOperands() - NumDefs, NumImpUses); in EmitMachineNode()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonPeephole.cpp139 assert (MI->getNumOperands() == 2); in runOnMachineFunction()
158 assert (MI->getNumOperands() == 3); in runOnMachineFunction()
175 assert(MI->getNumOperands() == 3); in runOnMachineFunction()
190 assert (MI->getNumOperands() == 2); in runOnMachineFunction()
208 assert (MI->getNumOperands() == 2); in runOnMachineFunction()
/external/llvm/lib/MC/
DMCInst.cpp44 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { in print()
60 for (unsigned i = 0, e = getNumOperands(); i != e; ++i) { in dump_pretty()
/external/llvm/lib/Target/ARM/
DThumb2SizeReduction.cpp340 for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) { in VerifyLowRegs()
425 for (unsigned i = 4; i < MI->getNumOperands(); ++i) { in ReduceLoadStore()
509 for (unsigned e = MI->getNumOperands(); OpNum != e; ++OpNum) in ReduceLoadStore()
551 MI->getOperand(MCID.getNumOperands()-1).getReg() == ARM::CPSR) in ReduceSpecial()
700 unsigned NumOps = MCID.getNumOperands(); in ReduceTo2Addr()
726 unsigned NumOps = MCID.getNumOperands(); in ReduceTo2Addr()
727 for (unsigned i = 1, e = MI->getNumOperands(); i != e; ++i) { in ReduceTo2Addr()
763 for (unsigned i = 0, e = MCID.getNumOperands(); i != e; ++i) { in ReduceToNarrow()
796 unsigned NumOps = MCID.getNumOperands(); in ReduceToNarrow()
822 unsigned NumOps = MCID.getNumOperands(); in ReduceToNarrow()
[all …]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
DAMDILPeepholeOptimizer.cpp263 atomicFuncs[x].first->getNumOperands()-1, in doAtomicConversionIfNeeded()
326 StringRef calleeName = CI->getOperand(CI->getNumOperands()-1)->getName(); in optimizeCallInst()
363 Function *F = dyn_cast<Function>(CI->getOperand(CI->getNumOperands()-1)); in optimizeCallInst()
758 assert(AndMaskVec->getNumOperands() == in optimizeBitExtract()
759 ShrValVec->getNumOperands() && "cannot have a " in optimizeBitExtract()
762 for (size_t x = 0, y = AndMaskVec->getNumOperands(); x < y; ++x) { in optimizeBitExtract()
847 Value *LHS = CI->getOperand(CI->getNumOperands() - 1); in expandBFI()
886 Value *LHS = CI->getOperand(CI->getNumOperands() - 1); in expandBFM()
982 Value *LHS = CI->getOperand(CI->getNumOperands() - 1); in isSigned24BitOps()
999 Value *LHS = CI->getOperand(CI->getNumOperands()-1); in expandSigned24BitOps()
[all …]

12345678910>>...14