Changes

Summary

  1. [ORC-RT] Avoid switching out-of-band error value into __orc_rt::Error and back. (details)
  2. [ORC-RT] Use function pointer type (rather than reference) for traits class. (details)
  3. [ORC-RT] Add MethodWrapperHandler utility for WrapperFunction. (details)
  4. [NFC] Fix typos (details)
  5. [clang] Add option to disable -clear-ast-before-backend (details)
Commit ea9826ff77195c12dfba698d5fcb90786c949aa2 by Lang Hames
[ORC-RT] Avoid switching out-of-band error value into __orc_rt::Error and back.

WrapperFunctionResult can already convey serialization errors as out-of-band
error values, so there's no need to wrap it in an Expected here. Removing the
wrapper simplifies the plumbing and call sites.
The file was modifiedcompiler-rt/lib/orc/wrapper_function_utils.h
Commit 21369d4b9d9233d0b58ea82b649435745d8dde70 by Lang Hames
[ORC-RT] Use function pointer type (rather than reference) for traits class.

Aligns this template with the corresponding one in LLVM.
The file was modifiedcompiler-rt/lib/orc/wrapper_function_utils.h
Commit b574c52db5335c7e68e5b77dfc40e954fe344d9a by Lang Hames
[ORC-RT] Add MethodWrapperHandler utility for WrapperFunction.

This is an ORC runtime counterpart to a01f772d19d, which introduced the same
functionality into LLVM.
The file was modifiedcompiler-rt/lib/orc/unittests/wrapper_function_utils_test.cpp
The file was modifiedcompiler-rt/lib/orc/wrapper_function_utils.h
Commit 9378ca52ca6ec39fa369349cf06f8ade47657570 by shaoce
[NFC] Fix typos
The file was modifiedllvm/test/MC/RISCV/rv32i-invalid.s
The file was modifiedllvm/include/llvm/CodeGen/TargetLowering.h
The file was modifiedllvm/test/MC/RISCV/rv32zbbp-valid.s
Commit 063c2f89aa7f5b0b61a63d639d8124035f26935c by aeubanks
[clang] Add option to disable -clear-ast-before-backend

Some downstream users have plugins that -clear-ast-before-backend may
affect. Add an option to opt out.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D112100
The file was modifiedclang/test/Misc/clear-ast-before-backend.c
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/CodeGen/CodeGenAction.cpp