MLIR  19.0.0git
Functions
Nodes.cpp File Reference
#include "mlir/Tools/PDLL/AST/Nodes.h"
#include "mlir/Tools/PDLL/AST/Context.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/ADT/TypeSwitch.h"
#include <optional>

Go to the source code of this file.

Functions

static StringRef copyStringWithNull (Context &ctx, StringRef str)
 Copy a string reference into the context with a null terminator. More...
 

Function Documentation

◆ copyStringWithNull()

static StringRef copyStringWithNull ( Context ctx,
StringRef  str 
)
static

Copy a string reference into the context with a null terminator.

Definition at line 19 of file Nodes.cpp.

References copy(), and mlir::pdll::ast::Context::getAllocator().

Referenced by mlir::pdll::ast::AttributeExpr::create(), mlir::pdll::ast::TypeExpr::create(), and mlir::pdll::ast::Name::create().