Lines Matching refs:Ctx
25 LLVMContext &Ctx = Header->getContext(); in createLoopPropertiesMetadata() local
30 MDNode *LoopID = MDNode::getDistinct(Ctx, NewLoopProperties); in createLoopPropertiesMetadata()
38 LLVMContext &Ctx = Header->getContext(); in createPipeliningMetadata() local
51 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.pipeline.disable"), in createPipeliningMetadata()
53 llvm::Type::getInt1Ty(Ctx), 1))})); in createPipeliningMetadata()
65 MDString::get(Ctx, "llvm.loop.pipeline.initiationinterval"), in createPipeliningMetadata()
67 llvm::Type::getInt32Ty(Ctx), Attrs.PipelineInitiationInterval))}; in createPipeliningMetadata()
68 Args.push_back(MDNode::get(Ctx, Vals)); in createPipeliningMetadata()
73 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPipeliningMetadata()
83 LLVMContext &Ctx = Header->getContext(); in createPartialUnrollMetadata() local
107 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.disable"))); in createPartialUnrollMetadata()
119 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll.count"), in createPartialUnrollMetadata()
121 llvm::Type::getInt32Ty(Ctx), Attrs.UnrollCount))}; in createPartialUnrollMetadata()
122 Args.push_back(MDNode::get(Ctx, Vals)); in createPartialUnrollMetadata()
127 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll.enable")}; in createPartialUnrollMetadata()
128 Args.push_back(MDNode::get(Ctx, Vals)); in createPartialUnrollMetadata()
133 Ctx, {MDString::get(Ctx, "llvm.loop.unroll.followup_all"), Followup})); in createPartialUnrollMetadata()
135 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPartialUnrollMetadata()
145 LLVMContext &Ctx = Header->getContext(); in createUnrollAndJamMetadata() local
159 Ctx, MDString::get(Ctx, "llvm.loop.unroll_and_jam.disable"))); in createUnrollAndJamMetadata()
169 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll_and_jam.disable"))); in createUnrollAndJamMetadata()
182 MDString::get(Ctx, "llvm.loop.unroll_and_jam.count"), in createUnrollAndJamMetadata()
183 ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx), in createUnrollAndJamMetadata()
185 Args.push_back(MDNode::get(Ctx, Vals)); in createUnrollAndJamMetadata()
189 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll_and_jam.enable")}; in createUnrollAndJamMetadata()
190 Args.push_back(MDNode::get(Ctx, Vals)); in createUnrollAndJamMetadata()
195 Ctx, {MDString::get(Ctx, "llvm.loop.unroll_and_jam.followup_outer"), in createUnrollAndJamMetadata()
200 Ctx, {MDString::get(Ctx, "llvm.loop.unroll_and_jam.followup_inner"), in createUnrollAndJamMetadata()
203 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createUnrollAndJamMetadata()
213 LLVMContext &Ctx = Header->getContext(); in createLoopVectorizeMetadata() local
229 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.vectorize.enable"), in createLoopVectorizeMetadata()
231 llvm::Type::getInt1Ty(Ctx), 0))})); in createLoopVectorizeMetadata()
243 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.isvectorized"))); in createLoopVectorizeMetadata()
261 MDString::get(Ctx, "llvm.loop.vectorize.predicate.enable"), in createLoopVectorizeMetadata()
262 ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt1Ty(Ctx), in createLoopVectorizeMetadata()
264 Args.push_back(MDNode::get(Ctx, Vals)); in createLoopVectorizeMetadata()
270 MDString::get(Ctx, "llvm.loop.vectorize.width"), in createLoopVectorizeMetadata()
271 ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx), in createLoopVectorizeMetadata()
274 Args.push_back(MDNode::get(Ctx, Vals)); in createLoopVectorizeMetadata()
280 MDString::get(Ctx, "llvm.loop.vectorize.scalable.enable"), in createLoopVectorizeMetadata()
282 ConstantInt::get(llvm::Type::getInt1Ty(Ctx), IsScalable))}; in createLoopVectorizeMetadata()
283 Args.push_back(MDNode::get(Ctx, Vals)); in createLoopVectorizeMetadata()
289 MDString::get(Ctx, "llvm.loop.interleave.count"), in createLoopVectorizeMetadata()
290 ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx), in createLoopVectorizeMetadata()
292 Args.push_back(MDNode::get(Ctx, Vals)); in createLoopVectorizeMetadata()
311 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.vectorize.enable"), in createLoopVectorizeMetadata()
313 llvm::Type::getInt1Ty(Ctx), AttrVal))})); in createLoopVectorizeMetadata()
318 Ctx, in createLoopVectorizeMetadata()
319 {MDString::get(Ctx, "llvm.loop.vectorize.followup_all"), Followup})); in createLoopVectorizeMetadata()
321 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createLoopVectorizeMetadata()
331 LLVMContext &Ctx = Header->getContext(); in createLoopDistributeMetadata() local
344 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.distribute.enable"), in createLoopDistributeMetadata()
346 llvm::Type::getInt1Ty(Ctx), 0))})); in createLoopDistributeMetadata()
361 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.distribute.enable"), in createLoopDistributeMetadata()
363 llvm::Type::getInt1Ty(Ctx), in createLoopDistributeMetadata()
365 Args.push_back(MDNode::get(Ctx, Vals)); in createLoopDistributeMetadata()
369 Ctx, in createLoopDistributeMetadata()
370 {MDString::get(Ctx, "llvm.loop.distribute.followup_all"), Followup})); in createLoopDistributeMetadata()
372 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createLoopDistributeMetadata()
381 LLVMContext &Ctx = Header->getContext(); in createFullUnrollMetadata() local
394 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.disable"))); in createFullUnrollMetadata()
404 Args.push_back(MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.full"))); in createFullUnrollMetadata()
409 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createFullUnrollMetadata()
430 LLVMContext &Ctx = Header->getContext(); in createMetadata() local
433 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.mustprogress"))); in createMetadata()
439 Ctx, {MDString::get(Ctx, "llvm.loop.parallel_accesses"), AccGroup})); in createMetadata()
482 LLVMContext &Ctx = Header->getContext(); in LoopInfo() local
483 AccGroup = MDNode::getDistinct(Ctx, {}); in LoopInfo()
510 LLVMContext &Ctx = Header->getContext(); in finish() local
569 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.isvectorized"))); in finish()
595 void LoopInfoStack::push(BasicBlock *Header, clang::ASTContext &Ctx, in push() argument
631 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()