[clang] [CIR] Upstream support for function/call calling conventions (PR #181170)
Sirui Mu via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 12 08:42:35 PST 2026
================
@@ -2369,13 +2393,15 @@ mlir::LogicalResult CIRToLLVMFuncOpLowering::matchAndRewrite(
"expected single location or unknown location here");
mlir::LLVM::Linkage linkage = convertLinkage(op.getLinkage());
- assert(!cir::MissingFeatures::opFuncCallingConv());
- mlir::LLVM::CConv cconv = mlir::LLVM::CConv::C;
+ auto cconv = convertCallingConv(op.getCallingConv());
----------------
Lancern wrote:
```suggestion
std::optional<mlir::LLVM::CConv> cconv = convertCallingConv(op.getCallingConv());
```
https://github.com/llvm/llvm-project/pull/181170
More information about the cfe-commits
mailing list