[PATCH] D98411: [OpenCL] Respect calling convention for builtin
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 16 05:04:21 PDT 2021
Anastasia added inline comments.
================
Comment at: clang/lib/CodeGen/CodeGenModule.cpp:6268
+ auto *FTy = llvm::FunctionType::get(SamplerT, {C->getType()}, false);
+ auto *Call = CGF.Builder.CreateCall(
+ CreateRuntimeFunction(FTy, "__translate_sampler_initializer"), {C});
----------------
Btw I think we should be using `CodeGenFunction::EmitRuntimeCall` here instead because it sets the CC correctly through `SPIRABIInfo`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98411/new/
https://reviews.llvm.org/D98411
More information about the cfe-commits
mailing list