/external/llvm/lib/Analysis/ |
D | LoopInfo.cpp | 208 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/ |
D | CGLoopInfo.cpp | 97 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()
|
D | CGLoopInfo.h | 74 llvm::MDNode *getLoopID() const { return LoopID; } in getLoopID() 84 llvm::MDNode *LoopID;
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopVersioningLICM.cpp | 129 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()
|
D | LoopUnrollPass.cpp | 560 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/ |
D | LoopUnroll.cpp | 690 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()
|
D | LoopUtils.cpp | 898 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()
|
D | LoopUnrollRuntime.cpp | 365 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/ |
D | LLVMContext.cpp | 133 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/ |
D | UnrollLoop.h | 43 MDNode *GetUnrollMetadata(MDNode *LoopID, StringRef Name);
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 1194 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/ |
D | LoopInfo.h | 438 void setLoopID(MDNode *LoopID) const;
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 435 if (MDNode *LoopID = in isLoopHeaderOfNoUnroll() local 437 if (GetUnrollMetadata(LoopID, "llvm.loop.unroll.disable")) in isLoopHeaderOfNoUnroll()
|