9#ifndef MLIR_CONVERSION_OPENACCTOLLVM_ACCTOLLVMUTILS_H
10#define MLIR_CONVERSION_OPENACCTOLLVM_ACCTOLLVMUTILS_H
16#include "llvm/ADT/StringRef.h"
29 bool errorOnInvalidLocation);
42 StringRef value, ModuleOp module);
46Value
createIdent(Location loc, StringRef functionName, OpBuilder &builder,
Optional overrides for OpenACC to LLVM runtime lowering.
std::optional< FileLineColLoc > getFileLineColLoc(Location loc, bool errorOnInvalidLocation)
Returns file:line:column location information when available.
Value getOrCreateGlobalString(Location loc, OpBuilder &builder, StringRef name, StringRef value, ModuleOp module)
Creates or reuses a module-internal null-terminated string global.
Value createIdent(Location loc, StringRef functionName, OpBuilder &builder, ModuleOp module, const ACCRuntimeCallConfig &config)
Returns a pointer to a constant global holding an ident_t for OpenACC runtime calls.
StringRef getParentFunctionName(Operation *op)
Returns the enclosing function symbol name for op.
Location unfuseLoc(Location loc)
Unfuses fused locations, returning the last sub-location.
Include the generated interface declarations.