Lines Matching refs:LoopAttributes

36 MDNode *LoopInfo::createPipeliningMetadata(const LoopAttributes &Attrs,  in createPipeliningMetadata()
81 LoopInfo::createPartialUnrollMetadata(const LoopAttributes &Attrs, in createPartialUnrollMetadata()
87 if (Attrs.UnrollEnable == LoopAttributes::Disable) in createPartialUnrollMetadata()
89 else if (Attrs.UnrollEnable == LoopAttributes::Full) in createPartialUnrollMetadata()
91 else if (Attrs.UnrollEnable != LoopAttributes::Unspecified || in createPartialUnrollMetadata()
127 if (Attrs.UnrollEnable == LoopAttributes::Enable) { in createPartialUnrollMetadata()
143 LoopInfo::createUnrollAndJamMetadata(const LoopAttributes &Attrs, in createUnrollAndJamMetadata()
149 if (Attrs.UnrollAndJamEnable == LoopAttributes::Disable) in createUnrollAndJamMetadata()
151 else if (Attrs.UnrollAndJamEnable == LoopAttributes::Enable || in createUnrollAndJamMetadata()
189 if (Attrs.UnrollAndJamEnable == LoopAttributes::Enable) { in createUnrollAndJamMetadata()
211 LoopInfo::createLoopVectorizeMetadata(const LoopAttributes &Attrs, in createLoopVectorizeMetadata()
217 if (Attrs.VectorizeEnable == LoopAttributes::Disable) in createLoopVectorizeMetadata()
219 else if (Attrs.VectorizeEnable != LoopAttributes::Unspecified || in createLoopVectorizeMetadata()
220 Attrs.VectorizePredicateEnable != LoopAttributes::Unspecified || in createLoopVectorizeMetadata()
222 Attrs.VectorizeScalable != LoopAttributes::Unspecified) in createLoopVectorizeMetadata()
257 if (Attrs.VectorizePredicateEnable != LoopAttributes::Unspecified) { in createLoopVectorizeMetadata()
259 (Attrs.VectorizePredicateEnable == LoopAttributes::Enable); in createLoopVectorizeMetadata()
278 if (Attrs.VectorizeScalable != LoopAttributes::Unspecified) { in createLoopVectorizeMetadata()
279 bool IsScalable = Attrs.VectorizeScalable == LoopAttributes::Enable; in createLoopVectorizeMetadata()
304 if (Attrs.VectorizeEnable != LoopAttributes::Unspecified || in createLoopVectorizeMetadata()
307 Attrs.VectorizeScalable == LoopAttributes::Enable || in createLoopVectorizeMetadata()
308 (Attrs.VectorizeScalable == LoopAttributes::Disable && in createLoopVectorizeMetadata()
310 bool AttrVal = Attrs.VectorizeEnable != LoopAttributes::Disable; in createLoopVectorizeMetadata()
329 LoopInfo::createLoopDistributeMetadata(const LoopAttributes &Attrs, in createLoopDistributeMetadata()
335 if (Attrs.DistributeEnable == LoopAttributes::Disable) in createLoopDistributeMetadata()
337 if (Attrs.DistributeEnable == LoopAttributes::Enable) in createLoopDistributeMetadata()
365 (Attrs.DistributeEnable == LoopAttributes::Enable)))}; in createLoopDistributeMetadata()
379 MDNode *LoopInfo::createFullUnrollMetadata(const LoopAttributes &Attrs, in createFullUnrollMetadata()
385 if (Attrs.UnrollEnable == LoopAttributes::Disable) in createFullUnrollMetadata()
387 else if (Attrs.UnrollEnable == LoopAttributes::Full) in createFullUnrollMetadata()
417 const LoopAttributes &Attrs, in createMetadata()
456 LoopAttributes::LoopAttributes(bool IsParallel) in LoopAttributes() function in LoopAttributes
457 : IsParallel(IsParallel), VectorizeEnable(LoopAttributes::Unspecified), in LoopAttributes()
458 UnrollEnable(LoopAttributes::Unspecified), in LoopAttributes()
459 UnrollAndJamEnable(LoopAttributes::Unspecified), in LoopAttributes()
460 VectorizePredicateEnable(LoopAttributes::Unspecified), VectorizeWidth(0), in LoopAttributes()
461 VectorizeScalable(LoopAttributes::Unspecified), InterleaveCount(0), in LoopAttributes()
463 DistributeEnable(LoopAttributes::Unspecified), PipelineDisabled(false), in LoopAttributes()
466 void LoopAttributes::clear() { in clear()
469 VectorizeScalable = LoopAttributes::Unspecified; in clear()
473 VectorizeEnable = LoopAttributes::Unspecified; in clear()
474 UnrollEnable = LoopAttributes::Unspecified; in clear()
475 UnrollAndJamEnable = LoopAttributes::Unspecified; in clear()
476 VectorizePredicateEnable = LoopAttributes::Unspecified; in clear()
477 DistributeEnable = LoopAttributes::Unspecified; in clear()
484 LoopInfo::LoopInfo(BasicBlock *Header, const LoopAttributes &Attrs, in LoopInfo()
497 Attrs.VectorizeScalable == LoopAttributes::Unspecified && in LoopInfo()
501 Attrs.VectorizePredicateEnable == LoopAttributes::Unspecified && in LoopInfo()
502 Attrs.VectorizeEnable == LoopAttributes::Unspecified && in LoopInfo()
503 Attrs.UnrollEnable == LoopAttributes::Unspecified && in LoopInfo()
504 Attrs.UnrollAndJamEnable == LoopAttributes::Unspecified && in LoopInfo()
505 Attrs.DistributeEnable == LoopAttributes::Unspecified && in LoopInfo()
519 LoopAttributes CurLoopAttr = Attrs; in finish()
528 LoopAttributes BeforeJam, AfterJam; in finish()
540 case LoopAttributes::Unspecified: in finish()
541 case LoopAttributes::Disable: in finish()
545 case LoopAttributes::Full: in finish()
546 BeforeJam.UnrollEnable = LoopAttributes::Full; in finish()
548 case LoopAttributes::Enable: in finish()
549 AfterJam.UnrollEnable = LoopAttributes::Enable; in finish()
574 if (BeforeJam.VectorizeEnable != LoopAttributes::Unspecified || in finish()
575 BeforeJam.VectorizePredicateEnable != LoopAttributes::Unspecified || in finish()
577 BeforeJam.VectorizeScalable == LoopAttributes::Enable) in finish()
665 setVectorizeScalable(LoopAttributes::Unspecified); in push()
672 setUnrollState(LoopAttributes::Disable); in push()
675 setUnrollAndJamState(LoopAttributes::Disable); in push()
678 setVectorizePredicateState(LoopAttributes::Disable); in push()
702 setUnrollState(LoopAttributes::Enable); in push()
705 setUnrollAndJamState(LoopAttributes::Enable); in push()
708 setVectorizePredicateState(LoopAttributes::Enable); in push()
748 setUnrollState(LoopAttributes::Full); in push()
751 setUnrollAndJamState(LoopAttributes::Full); in push()
772 ? LoopAttributes::Enable in push()
773 : LoopAttributes::Disable); in push()
826 (StagedAttrs.UnrollEnable == LoopAttributes::Unspecified && in push()
828 setUnrollState(LoopAttributes::Disable); in push()