• Home
  • Raw
  • Download

Lines Matching refs:fir

21   return fir::createFuncOp(loc, module, name, ty);  in createFunction()
30 fir::GlobalOp
33 return modOp.lookupSymbol<fir::GlobalOp>(name); in getNamedGlobal()
37 assert(!eleTy.isa<fir::ReferenceType>()); in getRefType()
38 return fir::ReferenceType::get(eleTy); in getRefType()
63 if (auto firType = realType.dyn_cast<fir::RealType>()) { in createRealZeroConstant()
85 return create<fir::AllocaOp>(loc, ty, nm, llvm::None, indices, attrs); in allocateLocal()
98 assert(!type.isa<fir::ReferenceType>() && "cannot be a reference"); in createTemporary()
99 auto ae = create<fir::AllocaOp>(loc, type, name, llvm::None, shape); in createTemporary()
106 fir::GlobalOp Fortran::lower::FirOpBuilder::createGlobal( in createGlobal()
111 if (auto glob = module.lookupSymbol<fir::GlobalOp>(name)) in createGlobal()
114 auto glob = create<fir::GlobalOp>(loc, name, isConst, type, value, linkage); in createGlobal()
119 fir::GlobalOp Fortran::lower::FirOpBuilder::createGlobal( in createGlobal()
124 if (auto glob = module.lookupSymbol<fir::GlobalOp>(name)) in createGlobal()
127 auto glob = create<fir::GlobalOp>(loc, name, isConst, type, mlir::Attribute{}, in createGlobal()
146 if ((fir::isa_real(fromTy) || fromTy.isSignlessInteger()) && in convertWithSemantics()
147 fir::isa_complex(toTy)) { in convertWithSemantics()
152 kindMap.getFloatSemantics(toTy.cast<fir::CplxType>().getFKind()), 0}; in convertWithSemantics()
157 if (fir::isa_complex(fromTy) && in convertWithSemantics()
158 (toTy.isSignlessInteger() || fir::isa_real(toTy))) { in convertWithSemantics()
170 return create<fir::ConvertOp>(loc, toTy, val); in createConvert()
174 fir::StringLitOp Fortran::lower::FirOpBuilder::createStringLit( in createStringLit()
177 auto valTag = mlir::Identifier::get(fir::StringLitOp::value(), getContext()); in createStringLit()
179 auto sizeTag = mlir::Identifier::get(fir::StringLitOp::size(), getContext()); in createStringLit()
183 fir::SequenceType::get(fir::SequenceType::Shape(1, data.size()), eleTy); in createStringLit()
184 return create<fir::StringLitOp>(loc, llvm::ArrayRef<mlir::Type>{arrTy}, in createStringLit()