Home
last modified time | relevance | path

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

/external/llvm/lib/Analysis/
DLoopInfo.cpp260 MDNode *LoopID = nullptr; in getLoopID() local
262 LoopID = getLoopLatch()->getTerminator()->getMetadata(LoopMDName); in getLoopID()
281 if (!LoopID) in getLoopID()
282 LoopID = MD; in getLoopID()
283 else if (MD != LoopID) in getLoopID()
287 if (!LoopID || LoopID->getNumOperands() == 0 || in getLoopID()
288 LoopID->getOperand(0) != LoopID) in getLoopID()
290 return LoopID; in getLoopID()
293 void Loop::setLoopID(MDNode *LoopID) const { in setLoopID()
294 assert(LoopID && "Loop ID should not be null"); in setLoopID()
[all …]
/external/clang/lib/CodeGen/
DCGLoopInfo.cpp82 MDNode *LoopID = MDNode::get(Ctx, Args); in createMetadata() local
83 LoopID->replaceOperandWith(0, LoopID); in createMetadata()
84 return LoopID; in createMetadata()
102 : LoopID(nullptr), Header(Header), Attrs(Attrs) { in LoopInfo()
103 LoopID = createMetadata(Header->getContext(), Attrs); in LoopInfo()
DCGLoopInfo.h69 llvm::MDNode *getLoopID() const { return LoopID; } in getLoopID()
79 llvm::MDNode *LoopID;
/external/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp229 MDNode *LoopID = NewLoop->getLoopID(); in CloneLoopBlocks() local
230 if (LoopID) { in CloneLoopBlocks()
232 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in CloneLoopBlocks()
234 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in CloneLoopBlocks()
240 MDs.push_back(LoopID->getOperand(i)); in CloneLoopBlocks()
DLoopUnroll.cpp565 MDNode *llvm::GetUnrollMetadata(MDNode *LoopID, StringRef Name) { in GetUnrollMetadata() argument
567 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in GetUnrollMetadata()
568 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in GetUnrollMetadata()
570 for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) { in GetUnrollMetadata()
571 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in GetUnrollMetadata()
/external/llvm/lib/Transforms/Scalar/
DLoopUnrollPass.cpp719 if (MDNode *LoopID = L->getLoopID()) in GetUnrollMetadataForLoop() local
720 return GetUnrollMetadata(LoopID, Name); in GetUnrollMetadataForLoop()
765 MDNode *LoopID = L->getLoopID(); in SetLoopAlreadyUnrolled() local
766 if (!LoopID) return; in SetLoopAlreadyUnrolled()
772 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in SetLoopAlreadyUnrolled()
774 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in SetLoopAlreadyUnrolled()
780 MDs.push_back(LoopID->getOperand(i)); in SetLoopAlreadyUnrolled()
/external/llvm/include/llvm/Transforms/Utils/
DUnrollLoop.h42 MDNode *GetUnrollMetadata(MDNode *LoopID, StringRef Name);
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1032 MDNode *LoopID = TheLoop->getLoopID(); in getHintsFromMetadata() local
1033 if (!LoopID) in getHintsFromMetadata()
1037 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in getHintsFromMetadata()
1038 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in getHintsFromMetadata()
1040 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in getHintsFromMetadata()
1046 if (const MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i))) { in getHintsFromMetadata()
1053 S = dyn_cast<MDString>(LoopID->getOperand(i)); in getHintsFromMetadata()
1118 MDNode *LoopID = TheLoop->getLoopID(); in writeHintsToMetadata() local
1119 if (LoopID) { in writeHintsToMetadata()
1120 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in writeHintsToMetadata()
[all …]
/external/llvm/include/llvm/Analysis/
DLoopInfo.h455 void setLoopID(MDNode *LoopID) const;
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp435 if (MDNode *LoopID = PBB->getTerminator()->getMetadata("llvm.loop")) { in isLoopHeaderOfNoUnroll() local
436 if (GetUnrollMetadata(LoopID, "llvm.loop.unroll.disable")) in isLoopHeaderOfNoUnroll()