[all-commits] [llvm/llvm-project] 4a0107: Expose Tail Kind Call to MLIR (#98080)

Steffi Stumpos via All-commits all-commits at lists.llvm.org
Tue Jul 9 14:04:54 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a010799317dfe19758477f693968fc594c1895d
      https://github.com/llvm/llvm-project/commit/4a010799317dfe19758477f693968fc594c1895d
  Author: Steffi Stumpos <stumposs12 at gmail.com>
  Date:   2024-07-09 (Tue, 09 Jul 2024)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
    M mlir/include/mlir/Dialect/LLVMIR/LLVMAttrs.h
    M mlir/include/mlir/Dialect/LLVMIR/LLVMEnums.td
    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
    M mlir/lib/Target/LLVMIR/ModuleImport.cpp
    M mlir/test/Dialect/LLVMIR/roundtrip.mlir
    A mlir/test/Dialect/LLVMIR/tail-call-kinds.mlir
    A mlir/test/Target/LLVMIR/Import/tail-kind.ll

  Log Message:
  -----------
  Expose Tail Kind Call to MLIR (#98080)

I would like to mark a call op in LLVM dialect as Musttail. The calling
convention attribute only exposes Tail, not Musttail. I noticed that the
CallInst of LLVM has an additional field to specify the flavor of tail
call kind. I bubbled this up to the LLVM dialect by adding another
attribute that maps to LLVM::CallInst::TailCallKind.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list