File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ class CGHLSLRuntime {
80
80
// ===----------------------------------------------------------------------===//
81
81
// Start of reserved area for HLSL intrinsic getters.
82
82
// ===----------------------------------------------------------------------===//
83
+
83
84
template <unsigned BI> llvm::Intrinsic::ID getIntrinsic ();
84
85
GENERATE_HLSL_INTRINSIC_TEMPLATE (builtin_hlsl_elementwise_all, all)
85
86
GENERATE_HLSL_INTRINSIC_FUNCTION (ThreadId, thread_id)
@@ -140,6 +141,11 @@ class CGHLSLRuntime {
140
141
llvm::SmallVector<Buffer> Buffers;
141
142
};
142
143
144
+ // Default implementation
145
+ template <unsigned BI> llvm::Intrinsic::ID CGHLSLRuntime::getIntrinsic () {
146
+ static_assert (false , " getIntrinsic is only allowed on specialized templates" );
147
+ }
148
+
143
149
} // namespace CodeGen
144
150
} // namespace clang
145
151
You can’t perform that action at this time.
0 commit comments