Lines Matching refs:Attrs
20 static MDNode *createMetadata(LLVMContext &Ctx, const LoopAttributes &Attrs) { in createMetadata() argument
22 if (!Attrs.IsParallel && Attrs.VectorizerWidth == 0 && in createMetadata()
23 Attrs.VectorizerUnroll == 0 && in createMetadata()
24 Attrs.VectorizerEnable == LoopAttributes::VecUnspecified) in createMetadata()
33 if (Attrs.VectorizerWidth > 0) { in createMetadata()
36 Type::getInt32Ty(Ctx), Attrs.VectorizerWidth))}; in createMetadata()
41 if (Attrs.VectorizerUnroll > 0) { in createMetadata()
44 Type::getInt32Ty(Ctx), Attrs.VectorizerUnroll))}; in createMetadata()
49 if (Attrs.VectorizerEnable != LoopAttributes::VecUnspecified) { in createMetadata()
54 (Attrs.VectorizerEnable == LoopAttributes::VecEnable)))}; in createMetadata()
75 LoopInfo::LoopInfo(BasicBlock *Header, const LoopAttributes &Attrs) in LoopInfo() argument
76 : LoopID(nullptr), Header(Header), Attrs(Attrs) { in LoopInfo()
77 LoopID = createMetadata(Header->getContext(), Attrs); in LoopInfo()