1. May 28, 2020
    • Sean Silva's avatar
      [mlir][core] Add IndexElementsAttr helpers. · 9546d8b1
      Sean Silva authored
      Summary:
      In a follow-up, I'll update the Shape dialect to use this instead of
      I64ElementsAttr.
      
      Differential Revision: https://reviews.llvm.org/D80601
      9546d8b1
    • Mircea Trofin's avatar
      [llvm] Add function feature extraction analysis · 98ef93ea
      Mircea Trofin authored
      Summary:
      This patch introduces an analysis pass to extract function features,
      which will be needed by the ML InlineAdvisor.
      
      RFC: http://lists.llvm.org/pipermail/llvm-dev/2020-April/140763.html
      
      Reviewers: davidxl, dblaikie, jdoerfert
      
      Subscribers: mgorny, hiraditya, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D80579
      98ef93ea
    • Michael Liao's avatar
      Enable `align <n>` to be used in the intrinsic definition. · fa342b5c
      Michael Liao authored
      - This allow us to specify the (minimal) alignment on an intrinsic's
        arguments and, more importantly, the return value.
      
      Differential Revision: https://reviews.llvm.org/D80422
      fa342b5c
    • Michael Liao's avatar
      Refactor argument attribute specification in intrinsic definition. NFC. · 03481287
      Michael Liao authored
      - Argument attribute needs specifiying through `ArgIndex<n>`
        (corresponding to `FirstArgIndex`) to distinguish explicitly from the
        index number from the overloaded type list.
      - In addition, `RetIndex` (corresponding to `ReturnIndex`) and
        `FuncIndex` (corresponding to `FunctionIndex`) are introduced for us
        to associate attributes on the return value and potentially function
        itself.
      
      Differential Revision: https://reviews.llvm.org/D80422
      03481287
    • Vitaly Buka's avatar
      [NFC,StackSafety] Rename some variables · 804a39a2
      Vitaly Buka authored
      804a39a2
    • Vitaly Buka's avatar
      [StackSafety] Bailout more aggressively · 14f33575
      Vitaly Buka authored
      Many edge cases, e.g. wrapped ranges, can be processed
      precisely without bailout. However it's very unlikely that
      memory access with min/max integer offsets will be
      classified as safe anyway.
      Early bailout may help with ThinLTO where we can
      drop unsafe parameters from summaries.
      14f33575
    • Sean Silva's avatar
      Remove error-prone mlir::ExecutionEngine::invoke overload. · b2773823
      Sean Silva authored
      I just spent a bunch of time debugging a mysterious bug that ended being due to my SmallVector getting passed to the Args&... overload instead of the MutableArrayRef overload, with disastrous results.
      
      I appreciate the intent of this API, but for a function that does a bunch of unsafe casts, adding in potential overload confusion is just too much C++ footgun. If we end up needing this functionality, having something like a separate `packArgs(Args&...) -> SmallVector` overload would be preferable.
      
      Turns out this API is unused and untested (even out of tree as far as I can tell, modulo the optional passing of no args to the other invoke as I fixed in this patch), so it's an easy fix -- just delete it and touch up the other overload.
      
      Differential Revision: https://reviews.llvm.org/D80607
      b2773823
    • Juneyoung Lee's avatar
      [TargetPassConfig] Add CanonicalizeFreezeInLoops before LSR · 54b64572
      Juneyoung Lee authored
      Summary:
      This patch adds CanonicalizeFreezeInLoops before LSR.
      Relevant patch: https://reviews.llvm.org/D77523
      
      Reviewers: spatel, efriedma, jdoerfert, fhahn, nikic, reames, xbolva00
      
      Reviewed By: nikic
      
      Subscribers: xbolva00, nikic, lebedev.ri, hiraditya, llvm-commits, sanwou01, nlopes
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D77524
      54b64572
    • Nicolas Vasilache's avatar
      [mlir] Fix RunnerUtils template specialization · 79aa9bfd
      Nicolas Vasilache authored
      Undoing a spurious change that broke SFINAE for some out of core use
      cases.
      79aa9bfd
    • MaheshRavishankar's avatar
      c6fa2efd
    • Michael Liao's avatar
      Fix `-Wpedantic` warning. NFC. · 49688b3c
      Michael Liao authored
      49688b3c
    • Jessica Paquette's avatar
      [GlobalISel] Don't combine instructions which are fed by memory instructions. · c593bf53
      Jessica Paquette authored
      If we have a memory instruction (e.g. a load), we shouldn't combine it away in
      some trivial combine.
      
      It's possible that, say, a call lives between the instructions. This could
      modify the value loaded, making the load instructions not safe to fold.
      
      Differential Revision: https://reviews.llvm.org/D80053
      c593bf53
    • Dmitry Vyukov's avatar
      tsan: fix test in debug mode · d24dd2b2
      Dmitry Vyukov authored
      sanitizer-x86_64-linux-autoconf has failed after the previous tsan commit:
      
      FAIL: ThreadSanitizer-x86_64 :: java_finalizer2.cpp (245 of 403)
      ******************** TEST 'ThreadSanitizer-x86_64 :: java_finalizer2.cpp' FAILED ********************
      Script:
      --
      : 'RUN: at line 1';      /b/sanitizer-x86_64-linux-autoconf/build/tsan_debug_build/./bin/clang  --driver-mode=g++ -fsanitize=thread -Wall  -m64   -gline-tables-only -I/b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/../ -std=c++11 -I/b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/../ -nostdinc++ -I/b/sanitizer-x86_64-linux-autoconf/build/tsan_debug_build/tools/clang/runtime/compiler-rt-bins/lib/tsan/libcxx_tsan_x86_64/include/c++/v1 -O1 /b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/java_finalizer2.cpp -o /b/sanitizer-x86_64-linux-autoconf/build/tsan_debug_build/tools/clang/runtime/compiler-rt-bins/test/tsan/X86_64Config/Output/java_finalizer2.cpp.tmp &&  /b/sanitizer-x86_64-linux-autoconf/build/tsan_debug_build/tools/clang/runtime/compiler-rt-bins/test/tsan/X86_64Config/Output/java_finalizer2.cpp.tmp 2>&1 | FileCheck /b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/java_finalizer2.cpp
      --
      Exit Code: 1
      
      Command Output (stderr):
      --
      /b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/test/tsan/java_finalizer2.cpp:82:11: error: CHECK: expected string not found in input
      // CHECK: DONE
                ^
      <stdin>:1:1: note: scanning from here
      FATAL: ThreadSanitizer CHECK failed: /b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/lib/tsan/rtl/tsan_sync.cpp:69 "((*meta)) == ((0))" (0x4000003e, 0x0)
      ^
      <stdin>:5:12: note: possible intended match here
       #3 __tsan::OnUserAlloc(__tsan::ThreadState*, unsigned long, unsigned long, unsigned long, bool) /b/sanitizer-x86_64-linux-autoconf/build/llvm-project/compiler-rt/lib/tsan/rtl/tsan_mman.cpp:225:16 (java_finalizer2.cpp.tmp+0x4af407)
                 ^
      
      http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-autoconf/builds/51143/steps/test%20tsan%20in%20debug%20compiler-rt%20build/logs/stdio
      
      Fix heap object overlap by offsetting java heap as other tests are doing.
      d24dd2b2
    • alex-t's avatar
      [AMDGPU] Fix for the lost CarryOut/CarryIn register operands in S_ADD/SUB_CO_PSEUDO. · eb1092ad
      alex-t authored
      Summary: This fixes the 5b898bdd bug when the carry-in and carry-out registers became lost in lowering S_ADD/SUB_CO_PSEUDO.
      
      Reviewers: rampitec, arsenm
      
      Reviewed By: arsenm
      
      Subscribers: msearles, arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, kerbowa, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D80158
      eb1092ad
    • Adrian Prantl's avatar
      Also cache negative results in GetXcodeSDKPath (NFC) · 33455215
      Adrian Prantl authored
      This fixes a performance issue in the failure case.
      
      rdar://63547920
      
      Differential Revision: https://reviews.llvm.org/D80595
      33455215
    • Jonas Devlieghere's avatar
      [lldb/Reproducers] Skip tests relying on timeouts · c30c2368
      Jonas Devlieghere authored
      The reproducer don't model timeouts so tests that rely on them end up
      with unexpected packets during replay. Skip them until we can handle
      this scenario.
      c30c2368
    • Jonas Devlieghere's avatar
      [lldb/Test] Generate YAML binary in build directory · fe9d8442
      Jonas Devlieghere authored
      Although it's not entirely clear to me why, this test was generating its
      binary in the source directory instead of the build directory. This
      patch fixes that following the same approach as other tests.
      fe9d8442
    • Craig Topper's avatar
      [X86] Restore selection of MULX on BMI2 targets. · 8e7e6a8d
      Craig Topper authored
      Looking back over gcc and icc behavior it looks like icc does
      use mulx32 on 32-bit targets and mulx64 on 64-bit targets. It's
      also used when dividing i32 by constant on 32-bit targets and
      i64 by constant on 64-bit targets.
      
      gcc uses it multiplies producing a 64 bit result on 32-bit targets
      and 128-bit results on a 64-bit target. gcc does not appear to use
      it for division by constant.
      
      After this patch clang is closer to the icc behavior. This
      basically reverts d1c61861, but
      there were no strong feelings at the time.
      
      Fixes PR45518.
      
      Differential Revision: https://reviews.llvm.org/D80498
      8e7e6a8d
    • Mircea Trofin's avatar
      [llvm]NFC] Simplify ProfileSummaryInfo state transitions · fa3b5871
      Mircea Trofin authored
      ProfileSummaryInfo is updated seldom, as result of very specific
      triggers. This patch clearly demarcates state updates from read-only uses.
      This, arguably, improves readability and maintainability.
      fa3b5871
    • Sanjay Patel's avatar
    • Matt Arsenault's avatar
      AMDGPU: Start adding MODE register uses to instructions · 4b449631
      Matt Arsenault authored
      This is the groundwork required to implement strictfp. For now, this
      should be NFC for regular instructoins (many instructions just gain an
      extra use of a reserved register). Regalloc won't rematerialize
      instructions with reads of physical registers, but we were suffering
      from that anyway with the exec reads.
      
      Should add it for all the related FP uses (possibly with some
      extras). I did not add it to either the gpr index mode instructions
      (or every single VALU instruction) since it's a ridiculous feature
      already modeled as an arbitrary side effect.
      
      Also work towards marking instructions with FP exceptions. This
      doesn't actually set the bit yet since this would start to change
      codegen. It seems nofpexcept is currently not implied from the regular
      IR FP operations. Add it to some MIR tests where I think it might
      matter.
      4b449631
    • John Fastabend's avatar
      [BPF] simplify zero extension with MOV_32_64 · 13f6c81c
      John Fastabend authored
      
      
      The current pattern matching for zext results in the following code snippet
      being produced,
      
        w1 = w0
        r1 <<= 32
        r1 >>= 32
      
      Because BPF implementations require zero extension on 32bit loads this
      both adds a few extra unneeded instructions but also makes it a bit
      harder for the verifier to track the r1 register bounds. For example in
      this verifier trace we see at the end of the snippet R2 offset is unknown.
      However, if we track this correctly we see w1 should have the same bounds
      as r8. R8 smax is less than U32 max value so a zero extend load should keep
      the same value. Adding a max value of 800 (R8=inv(id=0,smax_value=800)) to
      an off=0, as seen in R7 should create a max offset of 800. However at the
      end of the snippet we note the R2 max offset is 0xffffFFFF.
      
        R0=inv(id=0,smax_value=800)
        R1_w=inv(id=0,umax_value=2147483647,var_off=(0x0; 0x7fffffff))
        R6=ctx(id=0,off=0,imm=0) R7=map_value(id=0,off=0,ks=4,vs=1600,imm=0)
        R8_w=inv(id=0,smax_value=800,umax_value=4294967295,var_off=(0x0; 0xffffffff))
        R9=inv800 R10=fp0 fp-8=mmmm????
       58: (1c) w9 -= w8
       59: (bc) w1 = w8
       60: (67) r1 <<= 32
       61: (77) r1 >>= 32
       62: (bf) r2 = r7
       63: (0f) r2 += r1
       64: (bf) r1 = r6
       65: (bc) w3 = w9
       66: (b7) r4 = 0
       67: (85) call bpf_get_stack#67
        R0=inv(id=0,smax_value=800)
        R1_w=ctx(id=0,off=0,imm=0)
        R2_w=map_value(id=0,off=0,ks=4,vs=1600,umax_value=4294967295,var_off=(0x0; 0xffffffff))
        R3_w=inv(id=0,umax_value=800,var_off=(0x0; 0x3ff))
        R4_w=inv0 R6=ctx(id=0,off=0,imm=0)
        R7=map_value(id=0,off=0,ks=4,vs=1600,imm=0)
        R8_w=inv(id=0,smax_value=800,umax_value=4294967295,var_off=(0x0; 0xffffffff))
        R9_w=inv(id=0,umax_value=800,var_off=(0x0; 0x3ff))
        R10=fp0 fp-8=mmmm????
      
      After this patch R1 bounds are not smashed by the <<=32 >>=32 shift and we
      get correct bounds on R2 umax_value=800.
      
      Further it reduces 3 insns to 1.
      
      Signed-off-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
      
      Differential Revision: https://reviews.llvm.org/D73985
      13f6c81c
    • Lei Huang's avatar
      [PowerPC] Add support for -mcpu=pwr10 in both clang and llvm · 2368bf52
      Lei Huang authored
      Summary:
      This patch simply adds support for the new CPU in anticipation of
      Power10. There isn't really any functionality added so there are no
      associated test cases at this time.
      
      Reviewers: stefanp, nemanjai, amyk, hfinkel, power-llvm-team, #powerpc
      
      Reviewed By: stefanp, nemanjai, amyk, #powerpc
      
      Subscribers: NeHuang, steven.zhang, hiraditya, llvm-commits, wuzish, shchenz, cfe-commits, kbarton, echristo
      
      Tags: #clang, #powerpc, #llvm
      
      Differential Revision: https://reviews.llvm.org/D80020
      2368bf52
    • aartbik's avatar
      [mlir] [VectorOps] Add 'vector.flat_transpose' operation · c295a65d
      aartbik authored
      Summary:
      Provides a representation of the linearized LLVM instrinsic.
      With tests and lowering implementation to LLVM IR dialect.
      Prepares better lowering for 2-D vector.transpose.
      
      Reviewers: nicolasvasilache, ftynse, reidtatge, bkramer, dcaballe
      
      Reviewed By: ftynse, dcaballe
      
      Subscribers: mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, liufengdb, stephenneuendorffer, Joonsoo, grosul1, frgossen, Kayjukh, jurahul, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D80419
      c295a65d
    • Rithik Sharma's avatar
      [CodeMoverUtils] Use dominator tree level to decide the direction of · eadf2959
      Rithik Sharma authored
      code motion
      
      Summary: Currently isSafeToMoveBefore uses DFS numbering for determining
      the relative position of instruction and insert point which is not
      always correct. This PR proposes the use of Dominator Tree depth for the
      same. If a node is at a higher level than the insert point then it is
      safe to say that we want to move in the forward direction.
      Authored By: RithikSharma
      Reviewer: Whitney, nikic, bmahjour, etiotto, fhahn
      Reviewed By: Whitney
      Subscribers: fhahn, hiraditya, llvm-commits
      Tag: LLVM
      Differential Revision: https://reviews.llvm.org/D80084
      eadf2959
    • Fangrui Song's avatar
    • jasonliu's avatar
      [NFC][XCOFF][AIX] Return function entry point symbol with dedicate function · 8d9ff231
      jasonliu authored
      Use getFunctionEntryPointSymbol whenever possible to enclose the
      implementation detail and reduce duplicate logic.
      
      Differential Revision: https://reviews.llvm.org/D80402
      8d9ff231
    • Matt Arsenault's avatar
      AMDGPU: Set StackPointerRegisterToSaveRestore · d37ce53a
      Matt Arsenault authored
      This will enable selecting non-entry block allocas. Skip the SP write
      check in the base isSchedulingBoundary implementation to preserve the
      previous scheduling behavior and avoid test churn. It's apparently for
      compile time reasons, but if we were to use this more work would be
      needed since in some of the failing tests, we seem to incorrectly get
      hazard nops inserted.
      d37ce53a
    • Fangrui Song's avatar
      [Driver] Support -fsanitize=shadow-call-stack on aarch64_be · a2a3e9f0
      Fangrui Song authored
      Fixes https://bugs.llvm.org/show_bug.cgi?id=46076
      
      Reviewed By: nickdesaulniers, pcc
      
      Differential Revision: https://reviews.llvm.org/D80647
      a2a3e9f0
    • Daniel Martín's avatar
      [clangd] Add access specifier information to hover contents · 6407aa9d
      Daniel Martín authored
      Summary:
      For https://github.com/clangd/clangd/issues/382
      
      This commit adds access specifier information to the hover
      contents. For example, the hover information of a class field or
      member function will now indicate if the field or member is private,
      public, or protected. This can be particularly useful when a developer
      is in the implementation file and wants to know if a particular member
      definition is public or private.
      
      Reviewers: kadircet
      
      Reviewed By: kadircet
      
      Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D80472
      6407aa9d
    • Jonas Devlieghere's avatar
      [lldb/Reproducers] Skip API logging in the DUMMY macro · e7f1067a
      Jonas Devlieghere authored
      The purpose of the LLDB_RECORD_DUMMY macro is twofold: it is used in
      functions that take arguments that we don't know how to serialize (e.g.
      void*) and it's used by function where we want to avoid doing excessive
      work because they can be called from a signal handler (e.g.
      setTerminalWidth).
      
      To support the latter case, I've disabled API logging form the Recorder
      ctor used by the DUMMY macro. This ensures we don't allocate memory when
      called from a signal handler.
      e7f1067a
    • Matt Arsenault's avatar
      AMDGPU: Fix dropping MI flags when rewriting instructions · 07cd19ef
      Matt Arsenault authored
      All 3 passes that change instruction encodings were dropping MI
      flags. This avoids scheduling regressions caused by setting
      mayRaiseFPExceptions on FP instructions for non-strictfp functions.
      07cd19ef
    • Raphael Isemann's avatar
      [lldb] Make order of completions for expressions deterministic and sorted by... · 74a51753
      Raphael Isemann authored
      [lldb] Make order of completions for expressions deterministic and sorted by Clang's priority values.
      
      Summary:
      
      It turns out that the order in which we provide completions for expressions is
      nondeterministic. This leads to confusing user experience and also breaks the
      reproducer tests (as two LLDB tests can go out of sync due to the
      non-determinism in the completion lists)
      
      The reason for the non-determinism is that the CompletionConsumer informs us
      about decls in the order in which it finds declarations in the lookup store of
      the DeclContexts it visits (mainly this snippet in SemaLookup.cpp):
      
      ``` lang=c++
          // Enumerate all of the results in this context.
          for (DeclContextLookupResult R :
               Load ? Ctx->lookups()
                    : Ctx->noload_lookups(/*PreserveInternalState=*/false)) {
             [...]
      ```
      
      This storage of the lookup is sorted by pointer values (see the hash of
      `DeclarationName`) and can therefore be non-deterministic. The LLDB code
      completion consumer that receives these calls originally expected that the order
      of declarations is defined by Clang, but it seems the API expects the client to
      provide an order to the completions.
      
      This patch fixes the issue as follows:
      
      * We sort the completions we get from Clang alphabetically and also by the
      priority value we get from Clang (with priority value sorting having precedence
      over the alphabetical sorting)
      
      * We make all the functions/variables that touch a completion before the sorting
      const-qualified. The idea is that this should prevent that we never have
      observable side-effect from touching these declarations in a non-deterministic
      order (e.g., we don't try to complete the type by accident).
      
      This way we behave like the other parts of Clang which also sort the results by
      some deterministic value (usually the name or something computed from a name,
      e.g., edit distance to a given string).
      
      We most likely also need to fix the Clang code to make the loop I listed above
      deterministic to prevent these issues in the future (tracked in rdar://63442513
      ). This wouldn't replace the functionality provided in this patch though as we
      would still need the priority and overall alphabetical sorting.
      
      Note: I had to increase the lldb-vscode completion limit to 100 as the tests
      look for strings that aren't in the first 50 results anymore due to variable
      names starting with letters like 'v' (which are now always shown much further
      down in the list due to the alphabetical sorting).
      
      Fixes rdar://63200995
      
      Reviewers: JDevlieghere, clayborg
      
      Reviewed By: JDevlieghere
      
      Subscribers: mgrang, abidh
      
      Differential Revision: https://reviews.llvm.org/D80292
      74a51753
    • Fangrui Song's avatar
      [X86] Assemble movzb 1280(%rbx, %r12), %r12 after D80608 · 5b4cd2d4
      Fangrui Song authored
      ffmpeg/libavcodec/x86/h264_cabac.c inline assembly may produce
      movzb 1280(%rbx, %r12), %r12
      
      After D80608, llvm-mc errors:
      
      error: unknown use of instruction mnemonic without a size suffix
      5b4cd2d4
    • MaheshRavishankar's avatar
      [mlir][spirv] Lower allocation/deallocations of workgroup memory. · 4d6f44f5
      MaheshRavishankar authored
      This allocation of a workgroup memory is lowered to a
      spv.globalVariable. Only static size allocation with element type
      being int or float is handled. The lowering does account for the
      element type that are not supported in the lowered spv.module based on
      the extensions/capabilities and adjusts the number of elements to get
      the same byte length.
      
      Differential Revision: https://reviews.llvm.org/D80411
      4d6f44f5
    • Ties Stuij's avatar
      [CodeGen] fix typo `def nxv1bf32` -> `def nxv1f32` · 29f8056b
      Ties Stuij authored
      The `Add bfloat MVT type` patch introduced a typo in the nxv1f32 definition
      in llvm/include/llvm/CodeGen/ValueTypes.td:
      https://reviews.llvm.org/D79706/new/#inline-740433
      
      This patch fixes that.
      29f8056b
    • LLVM GN Syncbot's avatar
      [gn build] Port 0d20ed66 · bed78845
      LLVM GN Syncbot authored
      bed78845
    • Bardia Mahjour's avatar
      [DDG] Data Dependence Graph - Add query function for memory dependencies between two nodes · 0d20ed66
      Bardia Mahjour authored
      Summary:
      When working with the DDG it's useful to be able to query details of the
      memory dependencies between two nodes connected by a memory edge. The DDG
      does not hold a copy of the dependencies, but it contains a reference to a
      DependenceInfo object through which dependence information can be queried.
      This patch adds a query function to the DDG to obtain all the Dependence
      objects that exist between instructions of two nodes.
      
      Authored By: bmahjour
      
      Reviewers: Meinersbur, Whitney, etiotto
      
      Reviewed By: Whitney
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D80529
      0d20ed66
    • Nico Weber's avatar
      [gn build] (manually) port dedaf3a2 · 4f0eba28
      Nico Weber authored
      4f0eba28
    • David Truby's avatar
      [MLIR] [OpenMP] Add basic OpenMP parallel operation · 5ba874e4
      David Truby authored
      Summary:
      This includes a basic implementation for the OpenMP parallel
      operation without a custom pretty-printer and parser.
      The if, num_threads, private, shared, first_private, last_private,
      proc_bind and default clauses are included in this implementation.
      
      Currently the reduction clause is omitted as it is more complex and
      requires analysis to see if we can share implementation with the loop
      dialect. The allocate clause is also omitted.
      
      A discussion about the design of this operation can be found here:
      https://llvm.discourse.group/t/openmp-parallel-operation-design-issues/686
      
      The current OpenMP Specification can be found here:
      https://www.openmp.org/wp-content/uploads/OpenMP-API-Specification-5.0.pdf
      
      
      
      Co-authored-by: default avatarKiran Chandramohan <kiran.chandramohan@arm.com>
      
      Reviewers: jdoerfert
      
      Subscribers: mgorny, yaxunl, kristof.beyls, guansong, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, Joonsoo, grosul1, frgossen, Kayjukh, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D79410
      5ba874e4