[clang] [clang][SPIR-V] Always add convervence intrinsics (PR #88918)
Nathan Gauër via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 16 08:57:02 PDT 2024
================
@@ -4987,7 +4990,11 @@ class CodeGenFunction : public CodeGenTypeCache {
const llvm::Twine &Name = "");
// Adds a convergence_ctrl token to |Input| and emits the required parent
// convergence instructions.
- llvm::CallBase *addControlledConvergenceToken(llvm::CallBase *Input);
+ template <typename CallType>
+ CallType *addControlledConvergenceToken(CallType *Input) {
+ return dyn_cast<CallType>(
----------------
Keenuts wrote:
Forgot to fix the use, and yes, should be a cast. Bad habits...
https://github.com/llvm/llvm-project/pull/88918
More information about the cfe-commits
mailing list