diff options
| author | ranapratap55 <RanaPratapReddy.Nimmakayala@amd.com> | 2026-03-26 15:31:43 +0530 |
|---|---|---|
| committer | ranapratap55 <RanaPratapReddy.Nimmakayala@amd.com> | 2026-03-26 15:31:43 +0530 |
| commit | 067c0acce9810ed7612ef597da8cafd7e3e9148c (patch) | |
| tree | 3b4a17c4b1c0e6ebd0add4949c8e1a2ca49aba6c | |
| parent | 3aeea1037144d5f825b879147908ee3cdc498579 (diff) | |
| download | llvm-users/ranapratap55/cir-calling-convention.tar.gz llvm-users/ranapratap55/cir-calling-convention.tar.bz2 llvm-users/ranapratap55/cir-calling-convention.zip | |
[CIR] Add calling convention values to CIR_CallingConvusers/ranapratap55/cir-calling-convention
| -rw-r--r-- | clang/include/clang/CIR/Dialect/IR/CIROps.td | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/clang/include/clang/CIR/Dialect/IR/CIROps.td b/clang/include/clang/CIR/Dialect/IR/CIROps.td index b15dc30ffb87..0f3d2c10cf67 100644 --- a/clang/include/clang/CIR/Dialect/IR/CIROps.td +++ b/clang/include/clang/CIR/Dialect/IR/CIROps.td @@ -3586,9 +3586,14 @@ def CIR_OptionalPriorityAttr : OptionalAttr< > >; -// TODO(CIR): CallingConv is a placeholder here so we can use it in -// infrastructure calls, but it currently has no values. -def CIR_CallingConv : CIR_I32EnumAttr<"CallingConv", "calling convention", []>; +def CIR_CallingConv : CIR_I32EnumAttr<"CallingConv", "calling convention", [ + I32EnumAttrCase<"C", 1, "c">, + I32EnumAttrCase<"SpirKernel", 2, "spir_kernel">, + I32EnumAttrCase<"SpirFunction", 3, "spir_function">, + I32EnumAttrCase<"OpenCLKernel", 4, "opencl_kernel">, + I32EnumAttrCase<"PTXKernel", 5, "ptx_kernel">, + I32EnumAttrCase<"AMDGPUKernel", 6, "amdgpu_kernel"> +]>; def CIR_FuncOp : CIR_Op<"func", [ AutomaticAllocationScope, CallableOpInterface, FunctionOpInterface, |
