FLANG
LLVMInsertChainFolder.h
1//===-- LLVMInsertChainFolder.h -- insertvalue chain folder ----*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// Helper to fold LLVM dialect llvm.insertvalue chain representing constants
10// into an Attribute representation.
11// This sits in Flang because it is incomplete and tailored for flang needs.
12//
13//===----------------------------------------------------------------------===//
14
15#include "llvm/Support/LogicalResult.h"
16
17namespace mlir {
18class Attribute;
19class OpBuilder;
20class Value;
21} // namespace mlir
22
23namespace fir {
24
31llvm::FailureOr<mlir::Attribute>
32tryFoldingLLVMInsertChain(mlir::Value insertChainResult,
33 mlir::OpBuilder &builder);
34} // namespace fir
Definition AbstractConverter.h:34
llvm::FailureOr< mlir::Attribute > tryFoldingLLVMInsertChain(mlir::Value insertChainResult, mlir::OpBuilder &builder)
Definition LLVMInsertChainFolder.cpp:172
Definition AbstractConverter.h:29