Home
last modified time | relevance | path

Searched refs:toType (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/GPU/Transforms/
H A DMemoryPromotion.cpp125 auto toType = to.getType().cast<MemRefType>(); in insertCopies() local
127 (void)toType; in insertCopies()
128 assert(fromType.getShape() == toType.getShape()); in insertCopies()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/IR/
H A DLinalgOps.cpp383 Value buildTypeFn(TypeFn typeFn, Type toType, Value operand) { in buildTypeFn() argument
386 return cast(toType, operand, false); in buildTypeFn()
388 return cast(toType, operand, true); in buildTypeFn()
424 Value cast(Type toType, Value operand, bool isUnsignedCast) { in cast() argument
428 if (operand.getType() == toType) in cast()
430 if (auto toIntType = toType.dyn_cast<IntegerType>()) { in cast()
434 return builder.create<arith::FPToUIOp>(loc, toType, operand); in cast()
435 return builder.create<arith::FPToSIOp>(loc, toType, operand); in cast()
445 return builder.create<arith::ExtSIOp>(loc, toType, operand); in cast()
448 return builder.create<arith::TruncIOp>(loc, toType, operand); in cast()
[all …]
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dtools.cpp1028 FoldingContext &context, const DynamicType &toType, in DataConstantConversionHelper() argument
1030 DynamicType sizedType{FROM, toType.kind()}; in DataConstantConversionHelper()
1070 FoldingContext &context, const DynamicType &toType, in DataConstantConversionExtension() argument
1077 if (toType.category() == TypeCategory::Logical && in DataConstantConversionExtension()
1080 TypeCategory::Integer>(context, toType, expr); in DataConstantConversionExtension()
1082 if (toType.category() == TypeCategory::Integer && in DataConstantConversionExtension()
1085 TypeCategory::Logical>(context, toType, expr); in DataConstantConversionExtension()
/llvm-project-15.0.7/clang/lib/Tooling/
H A DInterpolatingCompilationDatabase.cpp207 Type = toType(LangStandard::getLangStandardForKind(Std).getLanguage()); in TransferableCommand()
253 static types::ID toType(Language Lang) { in toType() function
/llvm-project-15.0.7/mlir/lib/Dialect/MemRef/IR/
H A DMemRefOps.cpp657 auto toType = castOp.getSource().getType().dyn_cast<MemRefType>(); in matchAndRewrite() local
659 if (fromType && toType) { in matchAndRewrite()
660 if (fromType.getShape() == toType.getShape() && in matchAndRewrite()
661 fromType.getElementType() == toType.getElementType()) { in matchAndRewrite()
673 auto toType = castOp.getSource().getType().dyn_cast<MemRefType>(); in matchAndRewrite() local
675 if (fromType && toType) { in matchAndRewrite()
676 if (fromType.getShape() == toType.getShape() && in matchAndRewrite()
677 fromType.getElementType() == toType.getElementType()) { in matchAndRewrite()
/llvm-project-15.0.7/flang/lib/Lower/
H A DIO.cpp772 mlir::Location loc, mlir::Type toType) { in locToFilename() argument
774 return builder.createConvert(loc, toType, in locToFilename()
779 mlir::Location loc, mlir::Type toType) { in locToLineNo() argument
781 toType); in locToLineNo()
785 mlir::Location loc, mlir::Type toType) { in getDefaultScratch() argument
788 return builder.createConvert(loc, toType, null); in getDefaultScratch()
792 mlir::Location loc, mlir::Type toType) { in getDefaultScratchLen() argument
794 loc, builder.getIntegerAttr(toType, 0)); in getDefaultScratchLen()
H A DConvertExpr.cpp5240 mlir::Location loc, mlir::Type toType, in convertAdjustedType() argument
5246 builder.create<fir::AllocaOp>(loc, toType, mlir::ValueRange{len}); in convertAdjustedType()
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/
H A DSPIRVToLLVM.cpp784 Type toType = operation.getType(); in matchAndRewrite() local
786 auto dstType = this->typeConverter.convertType(toType); in matchAndRewrite()
790 if (getBitWidth(fromType) < getBitWidth(toType)) { in matchAndRewrite()
795 if (getBitWidth(fromType) > getBitWidth(toType)) { in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXISelDAGToDAG.cpp1753 unsigned int toType; in tryStore() local
1756 toType = ScalarVT.SimpleTy == MVT::f16 ? NVPTX::PTXLdStInstCode::Untyped in tryStore()
1759 toType = NVPTX::PTXLdStInstCode::Unsigned; in tryStore()
1782 getI32Imm(toType, dl), in tryStore()
1800 getI32Imm(toType, dl), in tryStore()
1826 getI32Imm(toType, dl), in tryStore()
1850 getI32Imm(toType, dl), in tryStore()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExpr.cpp1267 typedef ExprResult PerformCastFn(Sema &S, Expr *operand, QualType toType);
1272 ExprResult doIntegralCast(Sema &S, Expr *op, QualType toType) { in doIntegralCast() argument
1273 return S.ImpCastExprToType(op, toType, CK_IntegralCast); in doIntegralCast()
1276 ExprResult doComplexIntegralCast(Sema &S, Expr *op, QualType toType) { in doComplexIntegralCast() argument
1277 return S.ImpCastExprToType(op, S.Context.getComplexType(toType), in doComplexIntegralCast()