File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
clang/include/clang/Basic Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -2391,6 +2391,11 @@ the no-array ivdep's safelen, with the correspondent treatment by the backend.
2391
2391
[[intel::ivdep(a, 2)]] for (int i = 0; i != 10; ++i) { }
2392
2392
}
2393
2393
2394
+ template<int N>
2395
+ void bar() {
2396
+ [[intel::ivdep(N)]] for(;;) { }
2397
+ }
2398
+
2394
2399
}];
2395
2400
}
2396
2401
@@ -2409,6 +2414,11 @@ applied multiple times to the same loop.
2409
2414
[[intel::ii(4)]] for (int i = 0; i < 10; ++i) var++;
2410
2415
}
2411
2416
2417
+ template<int N>
2418
+ void bar() {
2419
+ [[intel::ii(N)]] for(;;) { }
2420
+ }
2421
+
2412
2422
}];
2413
2423
}
2414
2424
@@ -2428,6 +2438,11 @@ be applied multiple times to the same loop.
2428
2438
[[intel::max_concurrency(2)]] for (int i = 0; i != 10; ++i) a[i] = 0;
2429
2439
}
2430
2440
2441
+ template<int N>
2442
+ void bar() {
2443
+ [[intel::max_concurrency(N)]] for(;;) { }
2444
+ }
2445
+
2431
2446
}];
2432
2447
}
2433
2448
@@ -2447,6 +2462,11 @@ of the nested loop levels should be coalesced.
2447
2462
[[intel::loop_coalesce]] for (int i = 0; i != 10; ++i) a[i] = 0;
2448
2463
}
2449
2464
2465
+ template<int N>
2466
+ void bar() {
2467
+ [[intel::loop_coalesce(N)]] for(;;) { }
2468
+ }
2469
+
2450
2470
}];
2451
2471
}
2452
2472
@@ -2487,6 +2507,11 @@ used on the same loop in conjunction with disable_loop_pipelining.
2487
2507
[[intel::max_interleaving(4)]] for (int i = 0; i != 10; ++i) a[i] = 0;
2488
2508
}
2489
2509
2510
+ template<int N>
2511
+ void bar() {
2512
+ [[intel::max_interleaving(N)]] for(;;) { }
2513
+ }
2514
+
2490
2515
}];
2491
2516
}
2492
2517
@@ -2507,6 +2532,11 @@ used on the same loop in conjunction with disable_loop_pipelining.
2507
2532
[[intel::speculated_iterations(4)]] for (int i = 0; i < 10; ++i) var++;
2508
2533
}
2509
2534
2535
+ template<int N>
2536
+ void bar() {
2537
+ [[intel::speculated_iterations(N)]] for(;;) { }
2538
+ }
2539
+
2510
2540
}];
2511
2541
}
2512
2542
You can’t perform that action at this time.
0 commit comments