forked from OSchip/llvm-project
[Flang] fix some types in error message
This commit is contained in:
parent
5e39198570
commit
62e907e9f9
|
@ -236,7 +236,7 @@ mlir::Value fir::runtime::genExponent(fir::FirOpBuilder &builder,
|
|||
else if (resultType.isInteger(64))
|
||||
func = fir::runtime::getRuntimeFunc<ForcedExponent16_8>(loc, builder);
|
||||
} else
|
||||
fir::emitFatalError(loc, "unsupported REAL KIND in EXPONENT");
|
||||
fir::emitFatalError(loc, "unsupported REAL kind in EXPONENT");
|
||||
|
||||
auto funcTy = func.getFunctionType();
|
||||
llvm::SmallVector<mlir::Value> args = {
|
||||
|
@ -261,7 +261,7 @@ mlir::Value fir::runtime::genFraction(fir::FirOpBuilder &builder,
|
|||
else if (fltTy.isF128())
|
||||
func = fir::runtime::getRuntimeFunc<ForcedFraction16>(loc, builder);
|
||||
else
|
||||
fir::emitFatalError(loc, "unsupported real kind in FRACTION");
|
||||
fir::emitFatalError(loc, "unsupported REAL kind in FRACTION");
|
||||
|
||||
auto funcTy = func.getFunctionType();
|
||||
llvm::SmallVector<mlir::Value> args = {
|
||||
|
@ -325,7 +325,7 @@ mlir::Value fir::runtime::genRRSpacing(fir::FirOpBuilder &builder,
|
|||
else if (fltTy.isF128())
|
||||
func = fir::runtime::getRuntimeFunc<ForcedRRSpacing16>(loc, builder);
|
||||
else
|
||||
fir::emitFatalError(loc, "unsupported real kind in RRSPACING");
|
||||
fir::emitFatalError(loc, "unsupported REAL kind in RRSPACING");
|
||||
|
||||
auto funcTy = func.getFunctionType();
|
||||
llvm::SmallVector<mlir::Value> args = {
|
||||
|
@ -378,7 +378,7 @@ mlir::Value fir::runtime::genSetExponent(fir::FirOpBuilder &builder,
|
|||
else if (fltTy.isF128())
|
||||
func = fir::runtime::getRuntimeFunc<ForcedSetExponent16>(loc, builder);
|
||||
else
|
||||
fir::emitFatalError(loc, "unsupported real kind in FRACTION");
|
||||
fir::emitFatalError(loc, "unsupported REAL kind in FRACTION");
|
||||
|
||||
auto funcTy = func.getFunctionType();
|
||||
auto args = fir::runtime::createArguments(builder, loc, funcTy, x, i);
|
||||
|
@ -403,7 +403,7 @@ mlir::Value fir::runtime::genSpacing(fir::FirOpBuilder &builder,
|
|||
else if (fltTy.isF128())
|
||||
func = fir::runtime::getRuntimeFunc<ForcedSpacing16>(loc, builder);
|
||||
else
|
||||
fir::emitFatalError(loc, "unsupported real kind in SPACING");
|
||||
fir::emitFatalError(loc, "unsupported REAL kind in SPACING");
|
||||
|
||||
auto funcTy = func.getFunctionType();
|
||||
llvm::SmallVector<mlir::Value> args = {
|
||||
|
|
|
@ -261,7 +261,6 @@ public:
|
|||
class CodeGenRewrite : public fir::CodeGenRewriteBase<CodeGenRewrite> {
|
||||
public:
|
||||
void runOn(mlir::Operation *op, mlir::Region ®ion) {
|
||||
// auto op = getOperation();
|
||||
auto &context = getContext();
|
||||
mlir::OpBuilder rewriter(&context);
|
||||
mlir::ConversionTarget target(context);
|
||||
|
|
Loading…
Reference in New Issue