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

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


  Branch: refs/heads/users/xlauko/cir-constant-op-accesses
  Home:   https://github.com/llvm/llvm-project
  Commit: 376046571e736227c8ce8bb39b90d4570429bdc0
      https://github.com/llvm/llvm-project/commit/376046571e736227c8ce8bb39b90d4570429bdc0
  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