Changes

Summary

  1. [NFC][MachineRegisterInfo] Fix typo in comments of getLiveInVirtReg() function (details)
  2. [clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD. (details)
  3. [flang] Make 'this_image()' an intrinsic function (details)
  4. CodeView: static_cast result of getOffset() to size_t. (details)
  5. [examples] Fix SectionMemoryManager deconstruction error with MSVC. (details)
  6. [FuncSpec] Specialising on addresses of const global values. (details)
Commit 6403f716f129bb9edad9423cf1c23dc8e29a41d5 by VenkataRamanaiah.Nalamothu
[NFC][MachineRegisterInfo] Fix typo in comments of getLiveInVirtReg() function

Reviewed By: scott.linder

Differential Revision: https://reviews.llvm.org/D109743
The file was modifiedllvm/include/llvm/CodeGen/MachineRegisterInfo.h
Commit b588f5d665aa01fe88921fe2ffb7256fdedfbfb0 by brad
[clang][scan-build] Use cc/c++ instead of gcc/g++ on OpenBSD.

Differential Revision: https://reviews.llvm.org/D109349
The file was modifiedclang/tools/scan-build/libexec/ccc-analyzer
Commit ed921282e551f2252ccfcbddd7a85ad8a006ed3f by rasmussen17
[flang] Make 'this_image()' an intrinsic function

Added 'this_image()' to the list of functions that are evaluated as intrinsic.
Added IsCoarray functions to determine if an expression is a coarray (corank > 1).

Added save attribute to coarray variables in test file, this_image.f90.

reviewers: klausler, PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D108059
The file was modifiedflang/docs/Intrinsics.md
The file was modifiedflang/include/flang/Evaluate/tools.h
The file was modifiedflang/lib/Evaluate/intrinsics.cpp
The file was addedflang/test/Semantics/this_image.f90
The file was modifiedflang/lib/Evaluate/tools.cpp
The file was modifiedflang/test/Semantics/call10.f90
Commit fc08cfb8884db2f0a871479f7fc640e364a9ffe9 by peter
CodeView: static_cast result of getOffset() to size_t.

Silences a narrowing conversion warning on 32-bit platforms after D109923.
The file was modifiedllvm/lib/DebugInfo/CodeView/SimpleTypeSerializer.cpp
Commit 63838d88145feaeb839efff8f40ab1e98597e423 by Lang Hames
[examples] Fix SectionMemoryManager deconstruction error with MSVC.

This commit fixes an order-of-initialization issue: If the default mmapper
object is destroyed while some global SectionMemoryManager is still using it
then calls to the mapper from ~SectionMemoryManager will fail. This issue was
causing failures when running the LLVM Kaleidoscope examples on windows.

Switching to a ManagedStatic solves the initialization order issue.

Patch by Justice Adams. Thanks Justice!

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D107087
The file was modifiedllvm/lib/ExecutionEngine/SectionMemoryManager.cpp
Commit 97cc678cc4a226119ab48d399fd277283f4acc2d by sjoerd.meijer
[FuncSpec] Specialising on addresses of const global values.

This introduces an option to allow specialising on the address of global
values. This option is off by default because it is likely not that profitable
to do so and needs more investigation. Before, we were specialising on addresses
and thus this changes the default behaviour.

Differential Revision: https://reviews.llvm.org/D109775
The file was modifiedllvm/test/Transforms/FunctionSpecialization/function-specialization-nonconst-glob.ll
The file was modifiedllvm/lib/Transforms/IPO/FunctionSpecialization.cpp