MLIR  20.0.0git
Macros | Functions
LLVMAttrs.cpp File Reference
#include "mlir/Dialect/LLVMIR/LLVMAttrs.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/Interfaces/FunctionInterfaces.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include <optional>
#include "mlir/Dialect/LLVMIR/LLVMAttrInterfaces.cpp.inc"
#include "mlir/Dialect/LLVMIR/LLVMOpsEnums.cpp.inc"
#include "mlir/Dialect/LLVMIR/LLVMOpsAttrDefs.cpp.inc"

Go to the source code of this file.

Macros

#define GET_ATTRDEF_CLASSES
 
#define GET_ATTRDEF_LIST
 

Functions

static LogicalResult parseExpressionArg (AsmParser &parser, uint64_t opcode, SmallVector< uint64_t > &args)
 Parses DWARF expression arguments with respect to the DWARF operation opcode. More...
 
static void printExpressionArg (AsmPrinter &printer, uint64_t opcode, ArrayRef< uint64_t > args)
 Prints DWARF expression arguments with respect to the specific DWARF operation. More...
 

Macro Definition Documentation

◆ GET_ATTRDEF_CLASSES

#define GET_ATTRDEF_CLASSES

Definition at line 40 of file LLVMAttrs.cpp.

◆ GET_ATTRDEF_LIST

#define GET_ATTRDEF_LIST

Function Documentation

◆ parseExpressionArg()

LogicalResult parseExpressionArg ( AsmParser parser,
uint64_t  opcode,
SmallVector< uint64_t > &  args 
)
static

Parses DWARF expression arguments with respect to the DWARF operation opcode.

Some DWARF expression operations have a specific number of operands and may appear in a textual form.

Definition at line 147 of file LLVMAttrs.cpp.

References mlir::AsmParser::emitError(), mlir::AsmParser::getCurrentLocation(), mlir::AsmParser::parseCommaSeparatedList(), mlir::AsmParser::parseInteger(), and mlir::AsmParser::parseOptionalKeyword().

◆ printExpressionArg()

void printExpressionArg ( AsmPrinter printer,
uint64_t  opcode,
ArrayRef< uint64_t >  args 
)
static

Prints DWARF expression arguments with respect to the specific DWARF operation.

Some operands are printed in their textual form.

Definition at line 183 of file LLVMAttrs.cpp.