Searched refs:LoopID (Results 1 – 11 of 11) sorted by relevance
/external/llvm/lib/Analysis/ |
D | LoopInfo.cpp | 233 MDNode *LoopID = nullptr; in getLoopID() local 235 LoopID = getLoopLatch()->getTerminator()->getMetadata(LoopMDName); in getLoopID() 254 if (!LoopID) in getLoopID() 255 LoopID = MD; in getLoopID() 256 else if (MD != LoopID) in getLoopID() 260 if (!LoopID || LoopID->getNumOperands() == 0 || in getLoopID() 261 LoopID->getOperand(0) != LoopID) in getLoopID() 263 return LoopID; in getLoopID() 266 void Loop::setLoopID(MDNode *LoopID) const { in setLoopID() 267 assert(LoopID && "Loop ID should not be null"); in setLoopID() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGLoopInfo.cpp | 59 MDNode *LoopID = MDNode::get(Ctx, Args); in createMetadata() local 60 LoopID->replaceOperandWith(0, LoopID); in createMetadata() 61 return LoopID; in createMetadata() 76 : LoopID(nullptr), Header(Header), Attrs(Attrs) { in LoopInfo() 77 LoopID = createMetadata(Header->getContext(), Attrs); in LoopInfo()
|
D | CGLoopInfo.h | 60 llvm::MDNode *getLoopID() const { return LoopID; } in getLoopID() 70 llvm::MDNode *LoopID;
|
D | CGStmt.cpp | 672 llvm::MDNode *LoopID = llvm::MDNode::get(Context, Metadata); in EmitCondBrHints() local 673 LoopID->replaceOperandWith(0, LoopID); // First op points to itself. in EmitCondBrHints() 675 CondBr->setMetadata("llvm.loop", LoopID); in EmitCondBrHints()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUnrollRuntime.cpp | 230 MDNode *LoopID = NewLoop->getLoopID(); in CloneLoopBlocks() local 231 if (LoopID) { in CloneLoopBlocks() 233 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in CloneLoopBlocks() 235 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in CloneLoopBlocks() 241 MDs.push_back(LoopID->getOperand(i)); in CloneLoopBlocks()
|
D | LoopUnroll.cpp | 564 MDNode *llvm::GetUnrollMetadata(MDNode *LoopID, StringRef Name) { in GetUnrollMetadata() argument 566 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in GetUnrollMetadata() 567 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in GetUnrollMetadata() 569 for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) { in GetUnrollMetadata() 570 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in GetUnrollMetadata()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnrollPass.cpp | 611 if (MDNode *LoopID = L->getLoopID()) in GetUnrollMetadataForLoop() local 612 return GetUnrollMetadata(LoopID, Name); in GetUnrollMetadataForLoop() 651 MDNode *LoopID = L->getLoopID(); in SetLoopAlreadyUnrolled() local 652 if (!LoopID) return; in SetLoopAlreadyUnrolled() 658 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in SetLoopAlreadyUnrolled() 660 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in SetLoopAlreadyUnrolled() 666 MDs.push_back(LoopID->getOperand(i)); in SetLoopAlreadyUnrolled()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | UnrollLoop.h | 39 MDNode *GetUnrollMetadata(MDNode *LoopID, StringRef Name);
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 1112 MDNode *LoopID = TheLoop->getLoopID(); in getHintsFromMetadata() local 1113 if (!LoopID) in getHintsFromMetadata() 1117 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in getHintsFromMetadata() 1118 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in getHintsFromMetadata() 1120 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in getHintsFromMetadata() 1126 if (const MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i))) { in getHintsFromMetadata() 1133 S = dyn_cast<MDString>(LoopID->getOperand(i)); in getHintsFromMetadata() 1198 MDNode *LoopID = TheLoop->getLoopID(); in writeHintsToMetadata() local 1199 if (LoopID) { in writeHintsToMetadata() 1200 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in writeHintsToMetadata() [all …]
|
/external/llvm/include/llvm/Analysis/ |
D | LoopInfo.h | 443 void setLoopID(MDNode *LoopID) const;
|
/external/llvm/lib/Target/NVPTX/ |
D | NVPTXAsmPrinter.cpp | 435 if (MDNode *LoopID = PBB->getTerminator()->getMetadata("llvm.loop")) { in isLoopHeaderOfNoUnroll() local 436 if (GetUnrollMetadata(LoopID, "llvm.loop.unroll.disable")) in isLoopHeaderOfNoUnroll()
|