UnstableChanges

Summary

  1. Fix gcc build after de3a485d9 due to a gcc bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92598 (details)
  2. [RISCV] Frame handling for RISC-V V extension. (details)
  3. [RISCV] Spilling for RISC-V V extension. (2nd version) (details)
  4. [mlgo] Fetch models from path / URL (details)
Commit 0e3d7e61867d69721b28e557272bdf4b66010327 by douglas.yung
Fix gcc build after de3a485d9 due to a gcc bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92598

This should fix gcc based builders such as http://lab.llvm.org:8011/#/builders/76/builds/1683
The file was modifiedllvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
Commit 5a31a67385c900244dede8defedacfa4fe79f370 by kai.wang
[RISCV] Frame handling for RISC-V V extension.

This patch proposes how to deal with RISC-V vector frame objects. The
layout of RISC-V vector frame will look like

|---------------------------------|
| scalar callee-saved registers   |
|---------------------------------|
| scalar local variables          |
|---------------------------------|
| scalar outgoing arguments       |
|---------------------------------|
| RVV local variables &&          |
| RVV outgoing arguments          |
|---------------------------------| <- end of frame (sp)

If there is realignment or variable length array in the stack, we will use
frame pointer to access fixed objects and stack pointer to access
non-fixed objects.

|---------------------------------| <- frame pointer (fp)
| scalar callee-saved registers   |
|---------------------------------|
| scalar local variables          |
|---------------------------------|
| ///// realignment /////         |
|---------------------------------|
| scalar outgoing arguments       |
|---------------------------------|
| RVV local variables &&          |
| RVV outgoing arguments          |
|---------------------------------| <- end of frame (sp)

If there are both realignment and variable length array in the stack, we
will use frame pointer to access fixed objects and base pointer to access
non-fixed objects.

|---------------------------------| <- frame pointer (fp)
| scalar callee-saved registers   |
|---------------------------------|
| scalar local variables          |
|---------------------------------|
| ///// realignment /////         |
|---------------------------------| <- base pointer (bp)
| RVV local variables &&          |
| RVV outgoing arguments          |
|---------------------------------|
| /////////////////////////////// |
| variable length array           |
| /////////////////////////////// |
|---------------------------------| <- end of frame (sp)
| scalar outgoing arguments       |
|---------------------------------|

In this version, we do not save the addresses of RVV objects in the
stack. We access them directly through the polynomial expression
(a x VLENB + b). We do not reserve frame pointer when there is any RVV
object in the stack. So, we also access the scalar frame objects through the
polynomial expression (a x VLENB + b) if the access across RVV stack
area.

Differential Revision: https://reviews.llvm.org/D94465
The file was modifiedllvm/lib/Target/RISCV/RISCVFrameLowering.h
The file was addedllvm/test/CodeGen/RISCV/rvv/memory-args.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfo.cpp
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfo.h
The file was addedllvm/test/CodeGen/RISCV/rvv/access-fixed-objects-by-rvv.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/localvar.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/allocate-lmul-2-4-8.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVFrameLowering.cpp
The file was modifiedllvm/lib/Target/RISCV/RISCVRegisterInfo.cpp
Commit a3c783dbf27f0a65472906dafc455b5165ed881a by kai.wang
[RISCV] Spilling for RISC-V V extension. (2nd version)

Differential Revision: https://reviews.llvm.org/D95148
The file was addedllvm/test/CodeGen/RISCV/rvv/rv32-spill-vector.ll
The file was addedllvm/test/CodeGen/RISCV/rvv/rv64-spill-vector-csr.ll
The file was addedllvm/test/CodeGen/RISCV/spill-fpr-scalar.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfo.cpp
The file was addedllvm/test/CodeGen/RISCV/rvv/rv64-spill-vector.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
The file was addedllvm/test/CodeGen/RISCV/rvv/rv32-spill-vector-csr.ll
Commit 33481c9997e3f0afb6c10b1a33a4d48014cf6100 by mtrofin
[mlgo] Fetch models from path / URL

Allow custom location for pre-trained models used when AOT-compiling
policies.

Differential Revision: https://reviews.llvm.org/D96796
The file was modifiedllvm/cmake/modules/TensorFlowCompile.cmake
The file was modifiedllvm/lib/Analysis/CMakeLists.txt