Home
last modified time | relevance | path

Searched refs:LoopID (Results 1 – 13 of 13) sorted by relevance

/external/llvm/lib/Analysis/
DLoopInfo.cpp208 MDNode *LoopID = nullptr; in getLoopID() local
210 LoopID = getLoopLatch()->getTerminator()->getMetadata(LLVMContext::MD_loop); in getLoopID()
229 if (!LoopID) in getLoopID()
230 LoopID = MD; in getLoopID()
231 else if (MD != LoopID) in getLoopID()
235 if (!LoopID || LoopID->getNumOperands() == 0 || in getLoopID()
236 LoopID->getOperand(0) != LoopID) in getLoopID()
238 return LoopID; in getLoopID()
241 void Loop::setLoopID(MDNode *LoopID) const { in setLoopID()
242 assert(LoopID && "Loop ID should not be null"); in setLoopID()
[all …]
/external/clang/lib/CodeGen/
DCGLoopInfo.cpp97 MDNode *LoopID = MDNode::get(Ctx, Args); in createMetadata() local
98 LoopID->replaceOperandWith(0, LoopID); in createMetadata()
99 return LoopID; in createMetadata()
119 : LoopID(nullptr), Header(Header), Attrs(Attrs) { in LoopInfo()
120 LoopID = createMetadata(Header->getContext(), Attrs, Location); in LoopInfo()
DCGLoopInfo.h74 llvm::MDNode *getLoopID() const { return LoopID; } in getLoopID()
84 llvm::MDNode *LoopID;
/external/llvm/lib/Transforms/Scalar/
DLoopVersioningLICM.cpp129 MDNode *LoopID = TheLoop->getLoopID(); in addStringMetadataToLoop() local
130 if (LoopID) { in addStringMetadataToLoop()
131 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in addStringMetadataToLoop()
132 MDNode *Node = cast<MDNode>(LoopID->getOperand(i)); in addStringMetadataToLoop()
DLoopUnrollPass.cpp560 if (MDNode *LoopID = L->getLoopID()) in GetUnrollMetadataForLoop() local
561 return GetUnrollMetadata(LoopID, Name); in GetUnrollMetadataForLoop()
606 MDNode *LoopID = L->getLoopID(); in SetLoopAlreadyUnrolled() local
612 if (LoopID) { in SetLoopAlreadyUnrolled()
613 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in SetLoopAlreadyUnrolled()
615 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in SetLoopAlreadyUnrolled()
621 MDs.push_back(LoopID->getOperand(i)); in SetLoopAlreadyUnrolled()
/external/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp690 MDNode *llvm::GetUnrollMetadata(MDNode *LoopID, StringRef Name) { in GetUnrollMetadata() argument
692 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in GetUnrollMetadata()
693 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in GetUnrollMetadata()
695 for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) { in GetUnrollMetadata()
696 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in GetUnrollMetadata()
DLoopUtils.cpp898 MDNode *LoopID = TheLoop->getLoopID(); in findStringMetadataForLoop() local
900 if (!LoopID) in findStringMetadataForLoop()
904 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in findStringMetadataForLoop()
905 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in findStringMetadataForLoop()
908 for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) { in findStringMetadataForLoop()
909 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in findStringMetadataForLoop()
DLoopUnrollRuntime.cpp365 MDNode *LoopID = NewLoop->getLoopID(); in CloneLoopBlocks() local
366 if (LoopID) { in CloneLoopBlocks()
368 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in CloneLoopBlocks()
370 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in CloneLoopBlocks()
376 MDs.push_back(LoopID->getOperand(i)); in CloneLoopBlocks()
/external/llvm/lib/IR/
DLLVMContext.cpp133 unsigned LoopID = getMDKindID("llvm.loop"); in LLVMContext() local
134 assert(LoopID == MD_loop && "llvm.loop kind id drifted"); in LLVMContext()
135 (void)LoopID; in LLVMContext()
/external/llvm/include/llvm/Transforms/Utils/
DUnrollLoop.h43 MDNode *GetUnrollMetadata(MDNode *LoopID, StringRef Name);
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1194 MDNode *LoopID = TheLoop->getLoopID(); in getHintsFromMetadata() local
1195 if (!LoopID) in getHintsFromMetadata()
1199 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in getHintsFromMetadata()
1200 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in getHintsFromMetadata()
1202 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in getHintsFromMetadata()
1208 if (const MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i))) { in getHintsFromMetadata()
1215 S = dyn_cast<MDString>(LoopID->getOperand(i)); in getHintsFromMetadata()
1281 MDNode *LoopID = TheLoop->getLoopID(); in writeHintsToMetadata() local
1282 if (LoopID) { in writeHintsToMetadata()
1283 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in writeHintsToMetadata()
[all …]
/external/llvm/include/llvm/Analysis/
DLoopInfo.h438 void setLoopID(MDNode *LoopID) const;
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp435 if (MDNode *LoopID = in isLoopHeaderOfNoUnroll() local
437 if (GetUnrollMetadata(LoopID, "llvm.loop.unroll.disable")) in isLoopHeaderOfNoUnroll()