clang
22.0.0git
lib
CIR
Dialect
Transforms
LoweringPrepareCXXABI.h
Go to the documentation of this file.
1
//===----------------------------------------------------------------------===//
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
// This file provides the LoweringPrepareCXXABI class, which is the base class
10
// for ABI specific functionalities that are required during LLVM lowering
11
// prepare.
12
//
13
//===----------------------------------------------------------------------===//
14
15
#ifndef CIR_DIALECT_TRANSFORMS__LOWERINGPREPARECXXABI_H
16
#define CIR_DIALECT_TRANSFORMS__LOWERINGPREPARECXXABI_H
17
18
#include "mlir/IR/Value.h"
19
#include "
clang/AST/ASTContext.h
"
20
#include "
clang/CIR/Dialect/Builder/CIRBaseBuilder.h
"
21
#include "
clang/CIR/Dialect/IR/CIRDialect.h
"
22
23
namespace
cir
{
24
25
class
LoweringPrepareCXXABI
{
26
public
:
27
static
LoweringPrepareCXXABI
*
createItaniumABI
();
28
29
virtual
~LoweringPrepareCXXABI
() {}
30
31
virtual
mlir::Value
lowerDynamicCast
(
CIRBaseBuilderTy
&builder,
32
clang::ASTContext
&astCtx,
33
cir::DynamicCastOp op) = 0;
34
};
35
36
}
// namespace cir
37
38
#endif
// CIR_DIALECT_TRANSFORMS__LOWERINGPREPARECXXABI_H
ASTContext.h
Defines the clang::ASTContext interface.
CIRBaseBuilder.h
CIRDialect.h
cir::CIRBaseBuilderTy
Definition
CIRBaseBuilder.h:57
cir::LoweringPrepareCXXABI
Definition
LoweringPrepareCXXABI.h:25
cir::LoweringPrepareCXXABI::lowerDynamicCast
virtual mlir::Value lowerDynamicCast(CIRBaseBuilderTy &builder, clang::ASTContext &astCtx, cir::DynamicCastOp op)=0
cir::LoweringPrepareCXXABI::createItaniumABI
static LoweringPrepareCXXABI * createItaniumABI()
Definition
LoweringPrepareItaniumCXXABI.cpp:33
cir::LoweringPrepareCXXABI::~LoweringPrepareCXXABI
virtual ~LoweringPrepareCXXABI()
Definition
LoweringPrepareCXXABI.h:29
clang::ASTContext
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Definition
ASTContext.h:220
cir
Definition
ABIArgInfo.h:22
Generated on
for clang by
1.14.0