File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
third_party/intel/lib/TritonIntelGPUToLLVM Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ using namespace mlir::triton::gpu::intel;
2626#define S (v ) StringAttr::get(ctx, (v))
2727
2828#if defined(_MSC_VER) && !defined(__clang__)
29- // from https://gist.github.com/pps83/3210a2f980fd02bb2ba2e5a1fc4a2ef0
29+ // MSVC does not provide the GCC/Clang built-ins __builtin_clz and __builtin_ctz.
30+ // The following implementations use MSVC intrinsics to provide equivalent functionality.
31+ // This is only needed when compiling with MSVC (and not Clang), to ensure cross-platform compatibility.
32+ // See: https://gist.github.com/pps83/3210a2f980fd02bb2ba2e5a1fc4a2ef0
33+ #if defined(_MSC_VER) && !defined(__clang__)
3034#include < intrin.h>
3135
3236static int __builtin_clz (unsigned x) {
You can’t perform that action at this time.
0 commit comments