Lines Matching defs:bridge
1 //===-- Bridge.cpp -- bridge to lower to MLIR -----------------------------===//
80 #define DEBUG_TYPE "flang-lower-bridge"
378 explicit FirConverter(Fortran::lower::LoweringBridge &bridge)
379 : Fortran::lower::AbstractConverter(bridge.getLoweringOptions()),
380 bridge{bridge}, foldingContext{bridge.createFoldingContext()},
381 mlirSymbolTable{bridge.getModule()} {}
442 bridge.getModule(), bridge.getKindMap(), &mlirSymbolTable);
444 *this, bridge.getSemanticsContext(), bridge.getModule(),
462 bridge.getEnvironmentDefaults(),
704 &getMLIRContext(), tc, bridge.getDefaultKinds().GetDefaultKind(tc),
984 bridge.getCookedSource()) {
1027 return bridge.getSemanticsContext().FindScope(currentPosition);
1032 mlir::ModuleOp getModuleOp() override final { return bridge.getModule(); }
1035 return bridge.getMLIRContext();
1057 return bridge.getKindMap();
1066 return bridge.fctCtx();
1681 bridge.openAccCtx().finalizeAndKeep();
1682 bridge.fctCtx().finalizeAndKeep();
1686 bridge.openAccCtx().pop();
1687 bridge.fctCtx().pop();
2013 bridge.getSemanticsContext();
2870 *this, bridge.getSemanticsContext(), getEval(), acc);
2921 genOpenACCDeclarativeConstruct(*this, bridge.getSemanticsContext(),
2922 bridge.openAccCtx(), accDecl,
3137 genOpenMPConstruct(*this, localSymbols, bridge.getSemanticsContext(),
3153 *this, bridge.getSemanticsContext(), getEval(), ompDecl);
3155 *this, bridge.getSemanticsContext(), getEval(), ompDecl,
3158 *this, localSymbols, bridge.getSemanticsContext(), getEval(), ompDecl);
3385 bridge.getSemanticsContext().FindScope(endPosition);
3541 bridge.getSemanticsContext().FindScope(getEval().position));
3642 bridge.getSemanticsContext().FindScope(stmt.source);
4518 bridge.getLoweringOptions().getReallocateLHS();
5287 bridge.fctCtx().attachCleanup([=]() {
5304 bridge.fctCtx().attachCleanup([=]() {
5319 bridge.fctCtx().attachCleanup([=]() {
5324 (bridge.getTargetCharacteristics().hasSubnormalFlushingControl(
5331 bridge.fctCtx().attachCleanup([=]() {
5340 bridge.fctCtx().pushScope();
5341 bridge.openAccCtx().pushScope();
5343 LLVM_DEBUG(llvm::dbgs() << "\n[bridge - startNewFunction]";
5349 new fir::FirOpBuilder(func, bridge.getKindMap(), &mlirSymbolTable);
5351 builder->setFastMathFlags(bridge.getLoweringOptions().getMathOptions());
5594 LLVM_DEBUG(llvm::dbgs() << "\n[bridge - endNewFunction";
5628 builder = new fir::FirOpBuilder(func, bridge.getKindMap(), symbolTable);
5630 builder->setFastMathFlags(bridge.getLoweringOptions().getMathOptions());
5994 return bridge.getLoweringOptions().getLowerToHighLevelFIR();
6087 Fortran::lower::LoweringBridge &bridge;
6155 /// dealing with recursive derived types. This is held in the bridge because