[all-commits] [llvm/llvm-project] 88e5e8: [CIR] Simplify ConstantOp accesses and its getDefi...

Henrich Lauko via All-commits all-commits at lists.llvm.org
Fri Aug 1 11:40:33 PDT 2025


  Branch: refs/heads/users/xlauko/cir-constant-op-accesses
  Home:   https://github.com/llvm/llvm-project
  Commit: 88e5e8bd20d36c63d4110a70f9276a8095549668
      https://github.com/llvm/llvm-project/commit/88e5e8bd20d36c63d4110a70f9276a8095549668
  Author: xlauko <xlauko at mail.muni.cz>
  Date:   2025-08-01 (Fri, 01 Aug 2025)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/lib/CIR/CodeGen/CIRGenClass.cpp
    M clang/lib/CIR/CodeGen/CIRGenExpr.cpp
    M clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
    M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
    M clang/lib/CIR/Dialect/Transforms/CIRSimplify.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp

  Log Message:
  -----------
  [CIR] Simplify ConstantOp accesses and its getDefiningOp

- Replaces  dyn_cast<cir::ConstantOp>(v.getDefiningOp()) and similar with v.getDefiningOp<cir::ConstantOp>()
- Adds `getValueAttr`, `getIntValue` and `getBoolValue` methods to ConstantOp



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