9#ifndef FORTRAN_LOWER_HOSTASSOCIATIONS_H
10#define FORTRAN_LOWER_HOSTASSOCIATIONS_H
12#include "mlir/IR/Location.h"
13#include "mlir/IR/Types.h"
14#include "mlir/IR/Value.h"
15#include "llvm/ADT/SetVector.h"
24class AbstractConverter;
33 bool empty()
const {
return tupleSymbols.empty() && globalSymbols.empty(); }
42 const llvm::SetVector<const Fortran::semantics::Symbol *> &symbols,
58 return tupleSymbols.contains(&symbol) || globalSymbols.contains(&symbol);
63 llvm::SetVector<const Fortran::semantics::Symbol *> tupleSymbols;
66 llvm::SetVector<const Fortran::semantics::Symbol *> globalSymbols;
Definition: AbstractConverter.h:82
Definition: HostAssociations.h:30
void internalProcedureBindings(AbstractConverter &converter, SymMap &symMap)
Definition: HostAssociations.cpp:592
bool isAssociated(const Fortran::semantics::Symbol &symbol) const
Is symbol host associated ?
Definition: HostAssociations.h:57
mlir::Type getArgumentType(AbstractConverter &convert)
Return the type of the extra argument to add to each internal procedure.
Definition: HostAssociations.cpp:648
void addSymbolsToBind(const llvm::SetVector< const Fortran::semantics::Symbol * > &symbols, const Fortran::semantics::Scope &hostScope)
Definition: HostAssociations.cpp:546
bool empty() const
Returns true iff there are no host associations.
Definition: HostAssociations.h:33
void hostProcedureBindings(AbstractConverter &converter, SymMap &symMap)
Definition: HostAssociations.cpp:565
bool hasTupleAssociations() const
Definition: HostAssociations.h:37
Definition: SymbolMap.h:146
Definition: bit-population-count.h:20