Lines Matching refs:Ctx

26   LLVMContext &Ctx = Header->getContext();  in createLoopPropertiesMetadata()  local
31 MDNode *LoopID = MDNode::getDistinct(Ctx, NewLoopProperties); in createLoopPropertiesMetadata()
39 LLVMContext &Ctx = Header->getContext(); in createPipeliningMetadata() local
52 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.pipeline.disable"), in createPipeliningMetadata()
54 llvm::Type::getInt1Ty(Ctx), 1))})); in createPipeliningMetadata()
66 MDString::get(Ctx, "llvm.loop.pipeline.initiationinterval"), in createPipeliningMetadata()
68 llvm::Type::getInt32Ty(Ctx), Attrs.PipelineInitiationInterval))}; in createPipeliningMetadata()
69 Args.push_back(MDNode::get(Ctx, Vals)); in createPipeliningMetadata()
74 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPipeliningMetadata()
84 LLVMContext &Ctx = Header->getContext(); in createPartialUnrollMetadata() local
108 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.disable"))); in createPartialUnrollMetadata()
120 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll.count"), in createPartialUnrollMetadata()
122 llvm::Type::getInt32Ty(Ctx), Attrs.UnrollCount))}; in createPartialUnrollMetadata()
123 Args.push_back(MDNode::get(Ctx, Vals)); in createPartialUnrollMetadata()
128 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll.enable")}; in createPartialUnrollMetadata()
129 Args.push_back(MDNode::get(Ctx, Vals)); in createPartialUnrollMetadata()
134 Ctx, {MDString::get(Ctx, "llvm.loop.unroll.followup_all"), Followup})); in createPartialUnrollMetadata()
136 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createPartialUnrollMetadata()
146 LLVMContext &Ctx = Header->getContext(); in createUnrollAndJamMetadata() local
160 Ctx, MDString::get(Ctx, "llvm.loop.unroll_and_jam.disable"))); in createUnrollAndJamMetadata()
170 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll_and_jam.disable"))); in createUnrollAndJamMetadata()
183 MDString::get(Ctx, "llvm.loop.unroll_and_jam.count"), in createUnrollAndJamMetadata()
184 ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx), in createUnrollAndJamMetadata()
186 Args.push_back(MDNode::get(Ctx, Vals)); in createUnrollAndJamMetadata()
190 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.unroll_and_jam.enable")}; in createUnrollAndJamMetadata()
191 Args.push_back(MDNode::get(Ctx, Vals)); in createUnrollAndJamMetadata()
196 Ctx, {MDString::get(Ctx, "llvm.loop.unroll_and_jam.followup_outer"), in createUnrollAndJamMetadata()
201 Ctx, {MDString::get(Ctx, "llvm.loop.unroll_and_jam.followup_inner"), in createUnrollAndJamMetadata()
204 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createUnrollAndJamMetadata()
214 LLVMContext &Ctx = Header->getContext(); in createLoopVectorizeMetadata() local
230 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.vectorize.enable"), in createLoopVectorizeMetadata()
232 llvm::Type::getInt1Ty(Ctx), 0))})); in createLoopVectorizeMetadata()
244 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.isvectorized"))); in createLoopVectorizeMetadata()
262 MDString::get(Ctx, "llvm.loop.vectorize.predicate.enable"), in createLoopVectorizeMetadata()
263 ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt1Ty(Ctx), in createLoopVectorizeMetadata()
265 Args.push_back(MDNode::get(Ctx, Vals)); in createLoopVectorizeMetadata()
271 MDString::get(Ctx, "llvm.loop.vectorize.width"), in createLoopVectorizeMetadata()
272 ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx), in createLoopVectorizeMetadata()
275 Args.push_back(MDNode::get(Ctx, Vals)); in createLoopVectorizeMetadata()
281 MDString::get(Ctx, "llvm.loop.vectorize.scalable.enable"), in createLoopVectorizeMetadata()
283 ConstantInt::get(llvm::Type::getInt1Ty(Ctx), IsScalable))}; in createLoopVectorizeMetadata()
284 Args.push_back(MDNode::get(Ctx, Vals)); in createLoopVectorizeMetadata()
290 MDString::get(Ctx, "llvm.loop.interleave.count"), in createLoopVectorizeMetadata()
291 ConstantAsMetadata::get(ConstantInt::get(llvm::Type::getInt32Ty(Ctx), in createLoopVectorizeMetadata()
293 Args.push_back(MDNode::get(Ctx, Vals)); in createLoopVectorizeMetadata()
312 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.vectorize.enable"), in createLoopVectorizeMetadata()
314 llvm::Type::getInt1Ty(Ctx), AttrVal))})); in createLoopVectorizeMetadata()
319 Ctx, in createLoopVectorizeMetadata()
320 {MDString::get(Ctx, "llvm.loop.vectorize.followup_all"), Followup})); in createLoopVectorizeMetadata()
322 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createLoopVectorizeMetadata()
332 LLVMContext &Ctx = Header->getContext(); in createLoopDistributeMetadata() local
345 MDNode::get(Ctx, {MDString::get(Ctx, "llvm.loop.distribute.enable"), in createLoopDistributeMetadata()
347 llvm::Type::getInt1Ty(Ctx), 0))})); in createLoopDistributeMetadata()
362 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.distribute.enable"), in createLoopDistributeMetadata()
364 llvm::Type::getInt1Ty(Ctx), in createLoopDistributeMetadata()
366 Args.push_back(MDNode::get(Ctx, Vals)); in createLoopDistributeMetadata()
370 Ctx, in createLoopDistributeMetadata()
371 {MDString::get(Ctx, "llvm.loop.distribute.followup_all"), Followup})); in createLoopDistributeMetadata()
373 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createLoopDistributeMetadata()
382 LLVMContext &Ctx = Header->getContext(); in createFullUnrollMetadata() local
395 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.disable"))); in createFullUnrollMetadata()
405 Args.push_back(MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.unroll.full"))); in createFullUnrollMetadata()
410 MDNode *LoopID = MDNode::getDistinct(Ctx, Args); in createFullUnrollMetadata()
431 LLVMContext &Ctx = Header->getContext(); in createMetadata() local
434 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.mustprogress"))); in createMetadata()
440 Ctx, {MDString::get(Ctx, "llvm.loop.parallel_accesses"), AccGroup})); in createMetadata()
445 Metadata *Vals[] = {MDString::get(Ctx, "llvm.loop.align"), in createMetadata()
447 llvm::Type::getInt32Ty(Ctx), Attrs.CodeAlign))}; in createMetadata()
448 LoopProperties.push_back(MDNode::get(Ctx, Vals)); in createMetadata()
492 LLVMContext &Ctx = Header->getContext(); in LoopInfo() local
493 AccGroup = MDNode::getDistinct(Ctx, {}); in LoopInfo()
520 LLVMContext &Ctx = Header->getContext(); in finish() local
579 MDNode::get(Ctx, MDString::get(Ctx, "llvm.loop.isvectorized"))); in finish()
605 void LoopInfoStack::push(BasicBlock *Header, clang::ASTContext &Ctx, in push() argument
652 llvm::APSInt ValueAPS = ValueExpr->EvaluateKnownConstInt(Ctx); in push()