https://github.com/andykaylor updated
https://github.com/llvm/llvm-project/pull/129293
>From bb41af68d0d0f66c5610c69d6deb8a615d644fe5 Mon Sep 17 00:00:00 2001
From: Andy Kaylor
Date: Fri, 28 Feb 2025 10:54:09 -0800
Subject: [PATCH 1/3] [CIR] Replace CIRAttrVisitor with TypeSwitch
We previously
https://github.com/erichkeane approved this pull request.
https://github.com/llvm/llvm-project/pull/129293
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -37,63 +37,78 @@ using namespace llvm;
namespace cir {
namespace direct {
-class CIRAttrToValue : public CirAttrVisitor {
+class CIRAttrToValue {
public:
CIRAttrToValue(mlir::Operation *parentOp,
mlir::ConversionPatternRewriter &rewriter,
@@ -218,12 +221,31 @@ mlir::LogicalResult
CIRToLLVMGlobalOpLowering::matchAndRewrite(
SmallVector attributes;
if (init.has_value()) {
-GlobalInitAttrRewriter initRewriter(llvmType, rewriter);
-init = initRewriter.rewriteInitAttr(init.value());
-// If initRewri
https://github.com/andykaylor closed
https://github.com/llvm/llvm-project/pull/129293
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -218,12 +221,31 @@ mlir::LogicalResult
CIRToLLVMGlobalOpLowering::matchAndRewrite(
SmallVector attributes;
if (init.has_value()) {
-GlobalInitAttrRewriter initRewriter(llvmType, rewriter);
-init = initRewriter.rewriteInitAttr(init.value());
-// If initRewri
@@ -218,12 +221,31 @@ mlir::LogicalResult
CIRToLLVMGlobalOpLowering::matchAndRewrite(
SmallVector attributes;
if (init.has_value()) {
-GlobalInitAttrRewriter initRewriter(llvmType, rewriter);
-init = initRewriter.rewriteInitAttr(init.value());
-// If initRewri
@@ -218,12 +221,31 @@ mlir::LogicalResult
CIRToLLVMGlobalOpLowering::matchAndRewrite(
SmallVector attributes;
if (init.has_value()) {
-GlobalInitAttrRewriter initRewriter(llvmType, rewriter);
-init = initRewriter.rewriteInitAttr(init.value());
-// If initRewri
@@ -218,12 +221,31 @@ mlir::LogicalResult
CIRToLLVMGlobalOpLowering::matchAndRewrite(
SmallVector attributes;
if (init.has_value()) {
-GlobalInitAttrRewriter initRewriter(llvmType, rewriter);
-init = initRewriter.rewriteInitAttr(init.value());
-// If initRewri
@@ -37,63 +37,78 @@ using namespace llvm;
namespace cir {
namespace direct {
-class CIRAttrToValue : public CirAttrVisitor {
+class CIRAttrToValue {
public:
CIRAttrToValue(mlir::Operation *parentOp,
mlir::ConversionPatternRewriter &rewriter,
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Andy Kaylor (andykaylor)
Changes
The previously upstreamed lowering from ClangIR to LLVM IR diverged from the
incubator implementation, but when the incubator was updated to incorporate
these changes some issues arose which require the up
@@ -218,12 +221,31 @@ mlir::LogicalResult
CIRToLLVMGlobalOpLowering::matchAndRewrite(
SmallVector attributes;
if (init.has_value()) {
-GlobalInitAttrRewriter initRewriter(llvmType, rewriter);
-init = initRewriter.rewriteInitAttr(init.value());
-// If initRewri
https://github.com/andykaylor created
https://github.com/llvm/llvm-project/pull/129293
The previously upstreamed lowering from ClangIR to LLVM IR diverged from the
incubator implementation, but when the incubator was updated to incorporate
these changes some issues arose which require the upst
llvmbot wrote:
@llvm/pr-subscribers-clangir
Author: Andy Kaylor (andykaylor)
Changes
The previously upstreamed lowering from ClangIR to LLVM IR diverged from the
incubator implementation, but when the incubator was updated to incorporate
these changes some issues arose which require the
14 matches
Mail list logo