24#ifndef MLIR_ABI_TARGETS_TEST_TESTTARGET_H
25#define MLIR_ABI_TARGETS_TEST_TESTTARGET_H
31#include "llvm/Support/Error.h"
90std::optional<FunctionClassification>
The main mechanism for performing data layout queries.
This class represents a diagnostic that is inflight and set to be reported.
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(ArrayRef< Type > 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.