@@ -422,7 +422,7 @@ MDNode *LoopInfo::createMetadata(
422
422
// Setting ii attribute with an initiation interval
423
423
if (Attrs.IInterval > 0 ) {
424
424
LLVMContext &Ctx = Header->getContext ();
425
- Metadata *Vals[] = {MDString::get (Ctx, " llvm.loop.ii" ),
425
+ Metadata *Vals[] = {MDString::get (Ctx, " llvm.loop.ii.count " ),
426
426
ConstantAsMetadata::get (ConstantInt::get (
427
427
llvm::Type::getInt32Ty (Ctx), Attrs.IInterval ))};
428
428
LoopProperties.push_back (MDNode::get (Ctx, Vals));
@@ -431,7 +431,7 @@ MDNode *LoopInfo::createMetadata(
431
431
// Setting max_concurrency attribute with number of threads
432
432
if (Attrs.MaxConcurrencyNThreads > 0 ) {
433
433
LLVMContext &Ctx = Header->getContext ();
434
- Metadata *Vals[] = {MDString::get (Ctx, " llvm.loop.max_concurrency" ),
434
+ Metadata *Vals[] = {MDString::get (Ctx, " llvm.loop.max_concurrency.count " ),
435
435
ConstantAsMetadata::get (ConstantInt::get (
436
436
llvm::Type::getInt32Ty (Ctx),
437
437
Attrs.MaxConcurrencyNThreads ))};
@@ -766,9 +766,9 @@ void LoopInfoStack::push(BasicBlock *Header, clang::ASTContext &Ctx,
766
766
// 0 - 'llvm.loop.ivdep.enable' metadata will be emitted
767
767
// n - 'llvm.loop.ivdep.safelen, i32 n' metadata will be emitted
768
768
// For attribute ii:
769
- // n - 'llvm.loop.ii, i32 n' metadata will be emitted
769
+ // n - 'llvm.loop.ii.count , i32 n' metadata will be emitted
770
770
// For attribute max_concurrency:
771
- // n - 'llvm.loop.max_concurrency, i32 n' metadata will be emitted
771
+ // n - 'llvm.loop.max_concurrency.count , i32 n' metadata will be emitted
772
772
for (const auto *Attr : Attrs) {
773
773
const IntelFPGAIVDepAttr *IntelFPGAIVDep =
774
774
dyn_cast<IntelFPGAIVDepAttr>(Attr);
0 commit comments