21 assert(
value !=
nullptr &&
"value cannot be null");
27 return builder.
create<LLVM::ExtractValueOp>(loc,
value, pos);
This class defines the main interface for locations in MLIR and acts as a non-nullable wrapper around...
This class helps build Operations.
Operation * create(const OperationState &state)
Creates an operation given the fields represented as an OperationState.
void setPtr(OpBuilder &builder, Location loc, unsigned pos, Value ptr)
Builds IR to set a value in the struct at position pos.
StructBuilder(Value v)
Construct a helper for the given value.
Value extractPtr(OpBuilder &builder, Location loc, unsigned pos) const
Builds IR to extract a value from the struct at position pos.
This class represents an instance of an SSA value in the MLIR system, representing a computable value...
bool isCompatibleType(Type type)
Returns true if the given type is compatible with the LLVM dialect.
This header declares functions that assit transformations in the MemRef dialect.