Home
last modified time | relevance | path

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

/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/Utils/
H A DUtils.cpp72 auto targetIntegerType = targetType.dyn_cast<IntegerType>(); in getValueOrCreateCastToIndexLike() local
74 assert(targetIntegerType && valueIntegerType && in getValueOrCreateCastToIndexLike()
76 assert(targetIntegerType.getSignedness() == valueIntegerType.getSignedness()); in getValueOrCreateCastToIndexLike()
78 if (targetIntegerType.getWidth() > valueIntegerType.getWidth()) in getValueOrCreateCastToIndexLike()
79 return b.create<arith::ExtSIOp>(loc, targetIntegerType, value); in getValueOrCreateCastToIndexLike()
80 return b.create<arith::TruncIOp>(loc, targetIntegerType, value); in getValueOrCreateCastToIndexLike()