clang 20.0.0git
Macros | Functions
CIRAttrs.cpp File Reference
#include "clang/CIR/Dialect/IR/CIRDialect.h"
#include "mlir/IR/DialectImplementation.h"
#include "llvm/ADT/TypeSwitch.h"
#include "clang/CIR/Dialect/IR/CIROpsAttributes.cpp.inc"

Go to the source code of this file.

Macros

#define GET_ATTRDEF_CLASSES
 
#define GET_ATTRDEF_LIST
 

Functions

static void printFloatLiteral (mlir::AsmPrinter &p, llvm::APFloat value, mlir::Type ty)
 
static mlir::ParseResult parseFloatLiteral (mlir::AsmParser &parser, mlir::FailureOr< llvm::APFloat > &value, cir::CIRFPTypeInterface fpType)
 
static mlir::ParseResult parseConstPtr (mlir::AsmParser &parser, mlir::IntegerAttr &value)
 
static void printConstPtr (mlir::AsmPrinter &p, mlir::IntegerAttr value)
 
static ParseResult parseConstPtr (AsmParser &parser, mlir::IntegerAttr &value)
 
static void printConstPtr (AsmPrinter &p, mlir::IntegerAttr value)
 
static void printFloatLiteral (AsmPrinter &p, APFloat value, Type ty)
 
static ParseResult parseFloatLiteral (AsmParser &parser, FailureOr< APFloat > &value, CIRFPTypeInterface fpType)
 

Macro Definition Documentation

◆ GET_ATTRDEF_CLASSES

#define GET_ATTRDEF_CLASSES

Definition at line 30 of file CIRAttrs.cpp.

◆ GET_ATTRDEF_LIST

#define GET_ATTRDEF_LIST

Function Documentation

◆ parseConstPtr() [1/2]

static ParseResult parseConstPtr ( AsmParser &  parser,
mlir::IntegerAttr &  value 
)
static

Definition at line 64 of file CIRAttrs.cpp.

◆ parseConstPtr() [2/2]

static mlir::ParseResult parseConstPtr ( mlir::AsmParser &  parser,
mlir::IntegerAttr &  value 
)
static

◆ parseFloatLiteral() [1/2]

static ParseResult parseFloatLiteral ( AsmParser &  parser,
FailureOr< APFloat > &  value,
CIRFPTypeInterface  fpType 
)
static

Definition at line 164 of file CIRAttrs.cpp.

◆ parseFloatLiteral() [2/2]

static mlir::ParseResult parseFloatLiteral ( mlir::AsmParser &  parser,
mlir::FailureOr< llvm::APFloat > &  value,
cir::CIRFPTypeInterface  fpType 
)
static

◆ printConstPtr() [1/2]

static void printConstPtr ( AsmPrinter &  p,
mlir::IntegerAttr  value 
)
static

Definition at line 75 of file CIRAttrs.cpp.

◆ printConstPtr() [2/2]

static void printConstPtr ( mlir::AsmPrinter &  p,
mlir::IntegerAttr  value 
)
static

◆ printFloatLiteral() [1/2]

static void printFloatLiteral ( AsmPrinter &  p,
APFloat  value,
Type  ty 
)
static

Definition at line 160 of file CIRAttrs.cpp.

◆ printFloatLiteral() [2/2]

static void printFloatLiteral ( mlir::AsmPrinter &  p,
llvm::APFloat  value,
mlir::Type  ty 
)
static