[all-commits] [llvm/llvm-project] 607a1f: [CIR] Add cir-opt tool to exercise CIR dialect par...

Andy Kaylor via All-commits all-commits at lists.llvm.org
Mon Feb 24 11:23:22 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 607a1f2ace77fffb67a1f62df5ac6caa1c568f51
      https://github.com/llvm/llvm-project/commit/607a1f2ace77fffb67a1f62df5ac6caa1c568f51
  Author: Andy Kaylor <akaylor at nvidia.com>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

  Changed paths:
    A clang/include/clang/CIR/Passes.h
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    A clang/test/CIR/IR/func.cir
    A clang/test/CIR/IR/global.cir
    M clang/test/CMakeLists.txt
    M clang/test/lit.cfg.py
    M clang/tools/CMakeLists.txt
    A clang/tools/cir-opt/CMakeLists.txt
    A clang/tools/cir-opt/cir-opt.cpp

  Log Message:
  -----------
  [CIR] Add cir-opt tool to exercise CIR dialect parsing (#128254)

We need to be able to read in and parse files using the ClangIR dialect
in order to test this part of the functionality.

This change adds the minimum cir-opt tool needed to read and parse cir
files and write them back to text. This tool will later be extended to
add features for lowering from CIR to other MLIR dialects and to run CIR
passes as they are upstreamed.



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