24#ifndef MLIR_ABI_TARGETS_TEST_TESTTARGET_H
25#define MLIR_ABI_TARGETS_TEST_TESTTARGET_H
32#include "llvm/Support/Error.h"
91std::optional<FunctionClassification>
The main mechanism for performing data layout queries.
This class represents a diagnostic that is inflight and set to be reported.
This class provides an abstraction over the various different ranges of value types.
Instances of the Type class are uniqued, have an immutable identifier and an optional mutable compone...
std::optional< FunctionClassification > parseClassificationAttr(DictionaryAttr attr, function_ref< InFlightDiagnostic()> emitError)
Parse a FunctionClassification from a plain MLIR DictionaryAttr.
FunctionClassification classify(TypeRange argTypes, Type returnType, const DataLayout &dl)
Classify a function signature using the test target's predictable rules.
Include the generated interface declarations.
InFlightDiagnostic emitError(Location loc)
Utility method to emit an error message using this location.
llvm::function_ref< Fn > function_ref
Holds the full ABI classification for a function: return type and all arguments.