[flang] Upstream patch to enable the fir-ops test. bug 45487
authorEric Schweitz <eschweitz@nvidia.com>
Tue, 14 Apr 2020 16:50:50 +0000 (09:50 -0700)
committerEric Schweitz <eschweitz@nvidia.com>
Tue, 14 Apr 2020 17:02:04 +0000 (10:02 -0700)
Differential revision: https://reviews.llvm.org/D77834

flang/include/flang/Optimizer/Dialect/FIROps.td
flang/test/Fir/fir-ops.fir

index 9d50392..19212f1 100644 (file)
@@ -2467,8 +2467,6 @@ def fir_GlobalOp : fir_Op<"global", [IsolatedFromAbove, Symbol]> {
     TypeAttr:$type
   );
 
-  let results = (outs fir_ReferenceType:$resultType);
-
   let regions = (region AtMostRegion<1>:$region);
 
   let parser = [{
@@ -2508,9 +2506,6 @@ def fir_GlobalOp : fir_Op<"global", [IsolatedFromAbove, Symbol]> {
         return failure();
     }
 
-    auto refTy = AllocaOp::wrapResultType(globalType);
-    if (parser.addTypeToList(refTy, result.types))
-      return failure();
     return success();
   }];
 
index 4304d97..bdadf5c 100644 (file)
@@ -2,7 +2,6 @@
 
 // RUN: tco -emit-fir %s | tco -emit-fir | FileCheck %s
 // UNSUPPORTED: !fir
-// XFAIL: *
 
 // CHECK-LABEL: func @it1() -> !fir.int<4>
 func @it1() -> !fir.int<4>