MLIR 24.0.0git
ACCToLLVMUtils.h File Reference
#include "mlir/Dialect/OpenACC/OpenACCRuntimeUtils.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinOps.h"
#include "mlir/IR/Location.h"
#include "llvm/ADT/StringRef.h"
#include <optional>
#include <string>

Go to the source code of this file.

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::acc

Functions

Location mlir::acc::unfuseLoc (Location loc)
 Unfuses fused locations, returning the last sub-location.
std::optional< FileLineColLocmlir::acc::getFileLineColLoc (Location loc, bool errorOnInvalidLocation)
 Returns file:line:column location information when available.
StringRef mlir::acc::getParentFunctionName (Operation *op)
 Returns the enclosing function symbol name for op.
StringRef mlir::acc::getParentFunctionName (Value value)
 Returns the enclosing function symbol name for value's defining op.
StringRef mlir::acc::getParentFunctionName (ValueRange values)
 Returns the first non-empty enclosing function name from values.
Value mlir::acc::getOrCreateGlobalString (Location loc, OpBuilder &builder, StringRef name, StringRef value, ModuleOp module)
 Creates or reuses a module-internal null-terminated string global.
Value mlir::acc::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.