[all-commits] [llvm/llvm-project] 65fedb: [MLIR] Add support for calling conventions to LLVM...

Sirraide via All-commits all-commits at lists.llvm.org
Mon Nov 6 10:27:14 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65fedb43942690644869baa1e27a78a516f3f29e
      https://github.com/llvm/llvm-project/commit/65fedb43942690644869baa1e27a78a516f3f29e
  Author: Sirraide <74590115+Sirraide at users.noreply.github.com>
  Date:   2023-11-06 (Mon, 06 Nov 2023)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
    M mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
    A mlir/test/Dialect/LLVMIR/calling-conventions.mlir
    M mlir/test/Dialect/LLVMIR/func.mlir
    M mlir/test/Dialect/LLVMIR/inlining.mlir

  Log Message:
  -----------
  [MLIR] Add support for calling conventions to LLVM::CallOp and LLVM::InvokeOp (#71319)

Despite the fact that the LLVM dialect’s `FuncOp` already supports
calling conventions, there was yet no support for them in the ops that
actually perform function calls, which led to incorrect LLVM IR being
generated if one actually tried setting a `FuncOp`’s calling convention
to anything other than `ccc`.

This commit adds support for calling conventions to `LLVM::CallOp` and
`LLVM::InvokeOp` and makes sure that calling conventions are parsed,
printed, and lowered appropriately.




More information about the All-commits mailing list