[flang-commits] [flang] [FLANG][Lower] WIP Support for BOZ assigning into a variable (PR #96651)
Mats Petersson via flang-commits
flang-commits at lists.llvm.org
Tue Jun 25 09:52:05 PDT 2024
================
@@ -1433,6 +1433,19 @@ class HlfirBuilder {
private:
hlfir::EntityWithAttributes
gen(const Fortran::evaluate::BOZLiteralConstant &expr) {
+ mlir::Location loc = getLoc();
+ using Type =
+ Fortran::evaluate::Type<Fortran::evaluate::TypeCategory::Integer, 16>;
+ auto constant = Fortran::evaluate::Constant<Type>{
+ Fortran::evaluate::Scalar<Type>::ConvertUnsigned(std::move(expr))
+ .value};
----------------
Leporacanthicus wrote:
I thought it was a bit clunky. ;)
https://github.com/llvm/llvm-project/pull/96651
More information about the flang-commits
mailing list