Home
last modified time | relevance | path

Searched refs:fromTy (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DFIRBuilder.cpp276 auto fromTy = val.getType(); in convertWithSemantics() local
277 if (fromTy == toTy) in convertWithSemantics()
280 if ((fir::isa_real(fromTy) || fir::isa_integer(fromTy)) && in convertWithSemantics()
290 if (fir::isa_complex(fromTy) && in convertWithSemantics()
297 if (fromTy.isa<fir::BoxCharType>()) { in convertWithSemantics()
316 if (fir::isa_ref_type(toTy) && fir::isa_box_type(fromTy)) { in convertWithSemantics()
320 fir::unwrapRefType(fir::unwrapPassByRefType(fromTy)) && in convertWithSemantics()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSValBuilder.cpp114 QualType fromTy, QualType toTy) { in makeNonLoc() argument
117 if (fromTy == toTy) in makeNonLoc()
119 return nonloc::SymbolVal(SymMgr.getCastSymbol(operand, fromTy, toTy)); in makeNonLoc()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSValBuilder.h326 nonloc::SymbolVal makeNonLoc(const SymExpr *operand, QualType fromTy,
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DCodeGen.cpp776 auto fromTy = convertType(fromFirTy); in matchAndRewrite() local
779 if (fromTy == toTy) { in matchAndRewrite()
827 mlir::Value zero = genConstantIndex(loc, fromTy, rewriter, 0); in matchAndRewrite()
838 if (isFloatingPointTy(fromTy)) { in matchAndRewrite()
840 auto fromBits = mlir::LLVM::getPrimitiveTypeSizeInBits(fromTy); in matchAndRewrite()
850 } else if (fromTy.isa<mlir::IntegerType>()) { in matchAndRewrite()
853 auto fromBits = mlir::LLVM::getPrimitiveTypeSizeInBits(fromTy); in matchAndRewrite()
873 } else if (fromTy.isa<mlir::LLVM::LLVMPointerType>()) { in matchAndRewrite()
885 return emitError(loc) << "cannot convert " << fromTy << " to " << toTy; in matchAndRewrite()
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIROps.cpp875 if (auto fromTy = inner.getValue().getType().dyn_cast<fir::LogicalType>()) in fold() local
876 if (inner.getType().isa<mlir::IntegerType>() && (toTy == fromTy)) in fold()
880 if (auto fromTy = in fold() local
882 if (inner.getType().isa<fir::LogicalType>() && (toTy == fromTy) && in fold()
883 (fromTy.getWidth() == 1)) in fold()
/llvm-project-15.0.7/flang/lib/Lower/
H A DConvertExpr.cpp1351 auto fromTy = boxCharAddr.getType(); in genval() local
1352 if (auto charTy = fromTy.dyn_cast<fir::CharacterType>()) { in genval()
1361 kindMap.getCharacterBitsize(fir::unwrapRefType(fromTy) in genval()