Home
last modified time | relevance | path

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

12

/external/llvm-project/clang/lib/CodeGen/
DCGLoopInfo.cpp30 MDNode *LoopID = MDNode::getDistinct(Ctx, NewLoopProperties); in createLoopPropertiesMetadata() local
31 LoopID->replaceOperandWith(0, LoopID); in createLoopPropertiesMetadata()
32 return LoopID; in createLoopPropertiesMetadata()
73 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPipeliningMetadata() local
74 LoopID->replaceOperandWith(0, LoopID); in createPipeliningMetadata()
76 return LoopID; in createPipeliningMetadata()
135 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPartialUnrollMetadata() local
136 LoopID->replaceOperandWith(0, LoopID); in createPartialUnrollMetadata()
138 return LoopID; in createPartialUnrollMetadata()
203 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createUnrollAndJamMetadata() local
[all …]
/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/llvm-project/llvm/lib/Analysis/
DLoopInfo.cpp497 MDNode *LoopID = nullptr; in getLoopID() local
509 if (!LoopID) in getLoopID()
510 LoopID = MD; in getLoopID()
511 else if (MD != LoopID) in getLoopID()
514 if (!LoopID || LoopID->getNumOperands() == 0 || in getLoopID()
515 LoopID->getOperand(0) != LoopID) in getLoopID()
517 return LoopID; in getLoopID()
520 void Loop::setLoopID(MDNode *LoopID) const { in setLoopID()
521 assert((!LoopID || LoopID->getNumOperands() > 0) && in setLoopID()
523 assert((!LoopID || LoopID->getOperand(0) == LoopID) && in setLoopID()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLoopInfo.cpp491 MDNode *LoopID = nullptr; in getLoopID() local
503 if (!LoopID) in getLoopID()
504 LoopID = MD; in getLoopID()
505 else if (MD != LoopID) in getLoopID()
508 if (!LoopID || LoopID->getNumOperands() == 0 || in getLoopID()
509 LoopID->getOperand(0) != LoopID) in getLoopID()
511 return LoopID; in getLoopID()
514 void Loop::setLoopID(MDNode *LoopID) const { in setLoopID()
515 assert((!LoopID || LoopID->getNumOperands() > 0) && in setLoopID()
517 assert((!LoopID || LoopID->getOperand(0) == LoopID) && in setLoopID()
[all …]
/external/llvm-project/polly/test/Isl/CodeGen/LoopParallelMD/
Dsingle_loop_param_parallel.ll41 …ore i32 1, i32* %scevgep1, {{[ ._!,a-zA-Z0-9]*}}, !llvm.mem.parallel_loop_access ![[LoopID:[0-9]*]]
42 …: br i1 %polly.loop_cond, label %polly.loop_header, label %polly.loop_exit, !llvm.loop ![[LoopID]]
84 …= load i32, i32* %scevgep, {{[ ._!,a-zA-Z0-9]*}}, !llvm.mem.parallel_loop_access ![[LoopID:[0-9]*]]
85 …2 %val_p_scalar_, i32* %scevgep1, {{[ ._!,a-zA-Z0-9]*}}, !llvm.mem.parallel_loop_access ![[LoopID]]
86 …: br i1 %polly.loop_cond, label %polly.loop_header, label %polly.loop_exit, !llvm.loop ![[LoopID]]
/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/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopUnrollAndJamPass.cpp95 if (MDNode *LoopID = L->getLoopID()) in GetUnrollMetadataForLoop() local
96 return GetUnrollMetadata(LoopID, Name); in GetUnrollMetadataForLoop()
103 if (MDNode *LoopID = L->getLoopID()) { in HasAnyUnrollPragma() local
105 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in HasAnyUnrollPragma()
106 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in HasAnyUnrollPragma()
108 for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) { in HasAnyUnrollPragma()
109 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in HasAnyUnrollPragma()
/external/llvm-project/llvm/lib/Transforms/Scalar/
DLoopUnrollAndJamPass.cpp97 if (MDNode *LoopID = L->getLoopID()) in getUnrollMetadataForLoop() local
98 return GetUnrollMetadata(LoopID, Name); in getUnrollMetadataForLoop()
105 if (MDNode *LoopID = L->getLoopID()) { in hasAnyUnrollPragma() local
107 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in hasAnyUnrollPragma()
108 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in hasAnyUnrollPragma()
110 for (unsigned I = 1, E = LoopID->getNumOperands(); I < E; ++I) { in hasAnyUnrollPragma()
111 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(I)); in hasAnyUnrollPragma()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoopVectorizationLegality.cpp100 MDNode *LoopID = TheLoop->getLoopID(); in setAlreadyVectorized() local
102 makePostTransformationMetadata(Context, LoopID, in setAlreadyVectorized()
182 MDNode *LoopID = TheLoop->getLoopID(); in getHintsFromMetadata() local
183 if (!LoopID) in getHintsFromMetadata()
187 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in getHintsFromMetadata()
188 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in getHintsFromMetadata()
190 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in getHintsFromMetadata()
196 if (const MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i))) { in getHintsFromMetadata()
203 S = dyn_cast<MDString>(LoopID->getOperand(i)); in getHintsFromMetadata()
/external/llvm-project/llvm/lib/Transforms/Vectorize/
DLoopVectorizationLegality.cpp109 MDNode *LoopID = TheLoop->getLoopID(); in setAlreadyVectorized() local
111 makePostTransformationMetadata(Context, LoopID, in setAlreadyVectorized()
191 MDNode *LoopID = TheLoop->getLoopID(); in getHintsFromMetadata() local
192 if (!LoopID) in getHintsFromMetadata()
196 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in getHintsFromMetadata()
197 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in getHintsFromMetadata()
199 for (unsigned i = 1, ie = LoopID->getNumOperands(); i < ie; ++i) { in getHintsFromMetadata()
205 if (const MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i))) { in getHintsFromMetadata()
212 S = dyn_cast<MDString>(LoopID->getOperand(i)); in getHintsFromMetadata()
/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-project/llvm/test/Transforms/Inline/
Dparallel-loop-md-merge.ll41 !7 = distinct !{!7, !9} ; LoopID
64 !11 = distinct !{!11, !12} ; LoopID
/external/llvm-project/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp943 MDNode *llvm::GetUnrollMetadata(MDNode *LoopID, StringRef Name) { in GetUnrollMetadata() argument
945 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in GetUnrollMetadata()
946 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in GetUnrollMetadata()
948 for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) { in GetUnrollMetadata()
949 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in GetUnrollMetadata()
/external/llvm/include/llvm/Transforms/Utils/
DUnrollLoop.h43 MDNode *GetUnrollMetadata(MDNode *LoopID, StringRef Name);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp963 MDNode *llvm::GetUnrollMetadata(MDNode *LoopID, StringRef Name) { in GetUnrollMetadata() argument
965 assert(LoopID->getNumOperands() > 0 && "requires at least one operand"); in GetUnrollMetadata()
966 assert(LoopID->getOperand(0) == LoopID && "invalid loop id"); in GetUnrollMetadata()
968 for (unsigned i = 1, e = LoopID->getNumOperands(); i < e; ++i) { in GetUnrollMetadata()
969 MDNode *MD = dyn_cast<MDNode>(LoopID->getOperand(i)); in GetUnrollMetadata()
/external/llvm-project/llvm/test/Analysis/LoopInfo/
Dannotated-parallel-simple.ll34 !7 = distinct !{!7, !9} ; LoopID
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DDebugInfo.cpp308 MDNode *LoopID = MDNode::get(N->getContext(), Args); in stripDebugLocFromLoopID() local
309 LoopID->replaceOperandWith(0, LoopID); in stripDebugLocFromLoopID()
310 return LoopID; in stripDebugLocFromLoopID()
339 if (auto *LoopID = TermInst->getMetadata(LLVMContext::MD_loop)) { in stripDebugInfo() local
340 auto *NewLoopID = LoopIDsMap.lookup(LoopID); in stripDebugInfo()
342 NewLoopID = LoopIDsMap[LoopID] = stripDebugLocFromLoopID(LoopID); in stripDebugInfo()
343 if (NewLoopID != LoopID) in stripDebugInfo()
/external/llvm-project/llvm/include/llvm/Transforms/Utils/
DUnrollLoop.h121 MDNode *GetUnrollMetadata(MDNode *LoopID, StringRef Name);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DUnrollLoop.h128 MDNode *GetUnrollMetadata(MDNode *LoopID, StringRef Name);

12