Skip to content

Commit 139a3a7

Browse files
author
Anton Sidorenko
committed
Add CM_HAS_LSC_LOAD_L1RI_L3CA_HINT macro
Add CM_HAS_LSC_LOAD_L1RI_L3CA_HINT macro to check whether L1 read invalidate L3 cached combination is legal
1 parent 25cbf42 commit 139a3a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: clang/lib/Headers/cm/include/cm/cm_has_instr.h

+3
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ namespace CheckVersion {
182182
#else
183183
#define CM_HAS_STOCHASTIC_ROUNDING_CONTROL CM_HAS_CONTROL(false)
184184
#endif
185+
#if (CM_GENX <= 1280)
186+
#define CM_HAS_LSC_LOAD_L1RI_L3CA_HINT 1
187+
#endif
185188

186189
#else // CM_HAS_CONTROL
187190
CM_STATIC_ERROR(0, "Redeclaration of CM_HAS_CONTROL! It's used for control version of features!");

0 commit comments

Comments
 (0)