LLVM/project cd13170libcxx/include flat_map flat_set, libcxx/test/std/containers/container.adaptors/flat.map/flat.map.modifiers insert_range_sorted_unique.pass.cpp

[libc++] Implement P3567R2 flat_meow fixes (#162022)

Fixes #171272

---------

Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>
DeltaFile
+667-15libcxx/include/flat_map
+545-10libcxx/include/flat_set
+123-0libcxx/test/std/containers/container.adaptors/flat.multimap/flat.multimap.modifiers/insert_range_sorted_equivalent.pass.cpp
+121-0libcxx/test/std/containers/container.adaptors/flat.map/flat.map.modifiers/insert_range_sorted_unique.pass.cpp
+108-0libcxx/test/std/containers/container.adaptors/flat.multiset/flat.multiset.modifiers/insert_range_sorted_equivalent.pass.cpp
+108-0libcxx/test/std/containers/container.adaptors/flat.set/flat.set.modifiers/insert_range_sorted_unique.pass.cpp
+1,672-2523 files not shown
+1,833-11229 files

LLVM/project 611a271llvm/include/llvm/BinaryFormat GOFF.h, llvm/include/llvm/MC MCGOFFObjectWriter.h

[GOFF] Write out relocations in the GOFF writer (#167054)

Add support for writing relocations. Since the symbol numbering is only
available after the symbols are written, the relocations are collected
in a vector. At write time, the relocations are converted using the
symbols ids, compressed and written out. A relocation data record is
limited to 32K-1 bytes, which requires making sure that larger
relocation data is written into multiple records.
DeltaFile
+233-4llvm/lib/MC/GOFFObjectWriter.cpp
+46-1llvm/include/llvm/MC/MCGOFFObjectWriter.h
+12-12llvm/test/CodeGen/SystemZ/llvm.sincos.ll
+23-0llvm/include/llvm/BinaryFormat/GOFF.h
+18-5llvm/test/CodeGen/SystemZ/zos-section-1.ll
+21-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZGOFFObjectWriter.cpp
+353-2210 files not shown
+412-5916 files

LLVM/project b0234d1llvm/include/llvm/ADT Bitset.h, llvm/unittests/ADT BitsetTest.cpp

Revert "[ADT] Refactor Bitset to Be More Constexpr-Usable (#172062)"

This reverts commit a71b1d2a385da0f691f76176ed4a13d35e1f970f.
DeltaFile
+0-226llvm/unittests/ADT/BitsetTest.cpp
+15-44llvm/include/llvm/ADT/Bitset.h
+15-2702 files

LLVM/project 6d76e90llvm/lib/Analysis ValueTracking.cpp, llvm/test/Transforms/Attributor nofpclass-canonicalize.ll

ValueTracking: Improve accuracy of 0 handling with PreserveSign

If the source value is known not subnormal and not zero with the
same sign, we can infer the result is also not zero with the same
sign.
DeltaFile
+26-26llvm/test/Transforms/Attributor/nofpclass-canonicalize.ll
+8-0llvm/lib/Analysis/ValueTracking.cpp
+34-262 files

LLVM/project ac729b5llvm/test/Transforms/Attributor nofpclass-canonicalize.ll

ValueTracking: Add more tests for computeKnownFPClass canonicalize
DeltaFile
+90-0llvm/test/Transforms/Attributor/nofpclass-canonicalize.ll
+90-01 files

LLVM/project cdff692llvm/include/llvm/BinaryFormat GOFF.h, llvm/include/llvm/MC MCGOFFObjectWriter.h

[GOFF] Write out relocations in the GOFF writer

Add support for writing relocations. Since the symbol numbering is only
available after the symbols are written, the relocations are collected
in a vector. At write time, the relocations are converted using the
symbols ids, compressed and written out. A relocation data record is
limited to 32K-1 bytes, which requires making sure that larger relocation
data is written into multiple records.
DeltaFile
+233-4llvm/lib/MC/GOFFObjectWriter.cpp
+46-1llvm/include/llvm/MC/MCGOFFObjectWriter.h
+12-12llvm/test/CodeGen/SystemZ/llvm.sincos.ll
+23-0llvm/include/llvm/BinaryFormat/GOFF.h
+18-5llvm/test/CodeGen/SystemZ/zos-section-1.ll
+11-10llvm/test/CodeGen/SystemZ/zos-intrinsics.ll
+343-3210 files not shown
+412-5916 files

LLVM/project a22e8d3llvm/include/llvm/ADT STLExtras.h, llvm/unittests/ADT STLExtrasTest.cpp

Revert "Make STLExtras's (all|any|none)_of() Utility Functions Constexpr-Frie…"

This reverts commit 21fd8cc2a5584795107f384c5bf8d36c141188fc.
DeltaFile
+8-17llvm/include/llvm/ADT/STLExtras.h
+0-19llvm/unittests/ADT/STLExtrasTest.cpp
+8-362 files

LLVM/project abe0d62llvm/utils/gn/secondary/llvm/lib/MC BUILD.gn

[gn build] Port 37545b80f749
DeltaFile
+1-0llvm/utils/gn/secondary/llvm/lib/MC/BUILD.gn
+1-01 files

LLVM/project 91f14c1clang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/Sema SemaHLSL.cpp

[HLSL] Improve `packoffset` error message (#173077)

Aggregate types cannot have a component specified on a `packoffset` annotation (i.e. `packoffset(c1.y)`). If the component is preset and it is not 'x', the reported error is `register or packoffset bind is not valid`.

For non-aggregate types with a component that does not fit the constant buffer row size of 128 bits minus the component offset, the error message is `packoffset cannot cross register boundary`.

Also fixes grammar in a related error message.

Fixes #128109
DeltaFile
+3-3clang/test/SemaHLSL/packoffset-invalid.hlsl
+4-1clang/include/clang/Basic/DiagnosticSemaKinds.td
+2-2clang/lib/Sema/SemaHLSL.cpp
+9-63 files

LLVM/project 46902a7clang/lib/CIR/CodeGen CIRGenExprScalar.cpp, clang/test/CIR/CodeGen unary-expr-or-type-trait.cpp

[CIR] Add sizeof for fixed vector type (#172861)

Add sizeof for fixed vector type and Mark sizeof & alignof as NYI for
scalable Vector as it depends on using llvm.vscale not just the vector
size
DeltaFile
+20-8clang/test/CIR/CodeGen/unary-expr-or-type-trait.cpp
+13-0clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+33-82 files

LLVM/project 87ac5f2clang/lib/CIR/CodeGen CIRGenExprComplex.cpp, clang/test/CIR/CodeGen constant-expr.cpp

[CIR] Implement part of ConstantExpr support for ComplexType (#173102)

Implement part of the ConstantExpr support for the ComplexType
DeltaFile
+31-0clang/test/CIR/CodeGen/constant-expr.cpp
+7-1clang/lib/CIR/CodeGen/CIRGenExprComplex.cpp
+38-12 files

LLVM/project 37545b8llvm/include/llvm/MC MCSymbolGOFF.h, llvm/lib/MC MCSymbolGOFF.cpp GOFFObjectWriter.cpp

[GOFF] Emit symbols for functions. (#144437)

A function entry is mapped to a LD symbol with an offset to the begin of
the section. HLASM syntax is emitted accordingly.
DeltaFile
+86-8llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+69-0llvm/lib/MC/MCSymbolGOFF.cpp
+42-10llvm/include/llvm/MC/MCSymbolGOFF.h
+37-13llvm/test/CodeGen/SystemZ/zos-section-1.ll
+36-6llvm/lib/MC/GOFFObjectWriter.cpp
+38-0llvm/test/CodeGen/SystemZ/zos-symbol-1.ll
+308-3717 files not shown
+398-8223 files

LLVM/project 8e5cd32llvm/lib/Target/SystemZ/MCTargetDesc SystemZMCAsmInfo.cpp SystemZHLASMAsmStreamer.cpp, llvm/test/CodeGen/SystemZ llvm.sincos.ll zos-intrinsics.ll

Use correct type extension for relocations

D means 8 byte.
DeltaFile
+12-12llvm/test/CodeGen/SystemZ/llvm.sincos.ll
+11-10llvm/test/CodeGen/SystemZ/zos-intrinsics.ll
+9-9llvm/test/CodeGen/SystemZ/zos-hlasm-out.ll
+7-7llvm/test/CodeGen/SystemZ/zos-ada-relocations.ll
+4-4llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
+2-2llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+45-446 files

LLVM/project cc64064llvm/lib/Target/SystemZ/MCTargetDesc SystemZMCAsmInfo.h

Fix formatting.
DeltaFile
+3-3llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.h
+3-31 files

LLVM/project e3fb167llvm/lib/Target/SystemZ/MCTargetDesc SystemZHLASMAsmStreamer.cpp, llvm/test/CodeGen/SystemZ zos-hlasm-out.ll

Also test relocations
DeltaFile
+8-0llvm/test/CodeGen/SystemZ/zos-hlasm-out.ll
+3-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+11-02 files

LLVM/project 5cbb1b5llvm/include/llvm/MC MCGOFFObjectWriter.h, llvm/lib/Target/SystemZ SystemZAsmPrinter.cpp

Remove use of S_PLT
DeltaFile
+5-5llvm/include/llvm/MC/MCGOFFObjectWriter.h
+3-3llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.h
+2-2llvm/test/CodeGen/SystemZ/call-zos-02.ll
+1-3llvm/lib/Target/SystemZ/MCTargetDesc/SystemZGOFFObjectWriter.cpp
+3-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
+1-1llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
+15-142 files not shown
+17-168 files

LLVM/project 80f078fllvm/include/llvm/MC MCGOFFObjectWriter.h, llvm/lib/MC GOFFObjectWriter.cpp

Use only one vector to store the relocations.
DeltaFile
+61-89llvm/lib/MC/GOFFObjectWriter.cpp
+26-15llvm/include/llvm/MC/MCGOFFObjectWriter.h
+87-1042 files

LLVM/project a9f5c35llvm/include/llvm/MC MCGOFFObjectWriter.h, llvm/lib/MC GOFFObjectWriter.cpp

Remove `IsPCRel` parameter

Information can be retrieved from `Fixup`.
DeltaFile
+5-6llvm/lib/Target/SystemZ/MCTargetDesc/SystemZGOFFObjectWriter.cpp
+2-2llvm/include/llvm/MC/MCGOFFObjectWriter.h
+1-2llvm/lib/MC/GOFFObjectWriter.cpp
+8-103 files

LLVM/project f444c67llvm/include/llvm/BinaryFormat GOFF.h

Fix formatting.
DeltaFile
+1-4llvm/include/llvm/BinaryFormat/GOFF.h
+1-41 files

LLVM/project d16971fllvm/include/llvm/BinaryFormat GOFF.h, llvm/include/llvm/MC MCGOFFObjectWriter.h

[GOFF] Write out relocations in the GOFF writer

Add support for writing relocations. Since the symbol numbering is only
available after the symbols are written, the relocations are collected
in a vector. At write time, the relocations are converted using the
symbols ids, compressed and written out. A relocation data record is
limited to 32K-1 bytes, which requires making sure that larger relocation
data is written into multiple records.
DeltaFile
+262-4llvm/lib/MC/GOFFObjectWriter.cpp
+35-1llvm/include/llvm/MC/MCGOFFObjectWriter.h
+26-0llvm/include/llvm/BinaryFormat/GOFF.h
+24-0llvm/lib/Target/SystemZ/MCTargetDesc/SystemZGOFFObjectWriter.cpp
+18-5llvm/test/CodeGen/SystemZ/zos-section-1.ll
+11-5llvm/test/CodeGen/SystemZ/zos-section-2.ll
+376-151 files not shown
+377-157 files

LLVM/project 47f72b6mlir/cmake/modules AddMLIRPython.cmake, mlir/python CMakeLists.txt

massage cmake
DeltaFile
+94-31mlir/cmake/modules/AddMLIRPython.cmake
+10-61mlir/python/CMakeLists.txt
+104-922 files

LLVM/project 91d93c1llvm/include/llvm/MC MCSymbolGOFF.h, llvm/lib/MC GOFFObjectWriter.cpp

Add back isInSection()

Also add isInEDSection() as simple check.
DeltaFile
+5-12llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+4-0llvm/include/llvm/MC/MCSymbolGOFF.h
+1-1llvm/lib/MC/GOFFObjectWriter.cpp
+10-133 files

LLVM/project 9d230ballvm/lib/Target/SystemZ/MCTargetDesc SystemZHLASMAsmStreamer.cpp

Fix formatting.
DeltaFile
+3-3llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+3-31 files

LLVM/project be9d8d8llvm/lib/Target/SystemZ/MCTargetDesc SystemZHLASMAsmStreamer.cpp

Remove isInSection
DeltaFile
+1-1llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+1-11 files

LLVM/project d5ca9bellvm/lib/MC GOFFObjectWriter.cpp, llvm/lib/Target/SystemZ/MCTargetDesc SystemZHLASMAsmStreamer.cpp

Rewrite if conditions
DeltaFile
+7-11llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+4-5llvm/lib/MC/GOFFObjectWriter.cpp
+11-162 files

LLVM/project c7a43dcllvm/lib/MC GOFFObjectWriter.cpp

Fix formatting
DeltaFile
+1-2llvm/lib/MC/GOFFObjectWriter.cpp
+1-21 files

LLVM/project bf42b2bllvm/lib/CodeGen/AsmPrinter AsmPrinter.cpp, llvm/lib/MC MCAsmInfoGOFF.cpp

Remove loop with type information
DeltaFile
+0-12llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+3-3llvm/test/CodeGen/SystemZ/zos-symbol-1.ll
+0-4llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
+2-2llvm/test/CodeGen/SystemZ/zos-section-1.ll
+1-1llvm/test/CodeGen/SystemZ/zos-section-2.ll
+0-1llvm/lib/MC/MCAsmInfoGOFF.cpp
+6-236 files

LLVM/project 971571fllvm/include/llvm/MC MCSymbolGOFF.h, llvm/lib/CodeGen/AsmPrinter AsmPrinter.cpp

Remove MCSA_WeakReference/MCSA_Global from the loop
DeltaFile
+4-3llvm/include/llvm/MC/MCSymbolGOFF.h
+1-3llvm/lib/MC/MCSymbolGOFF.cpp
+0-3llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+1-0llvm/lib/MC/MCAsmInfoGOFF.cpp
+6-94 files

LLVM/project 54f16adllvm/include/llvm/MC MCSymbolGOFF.h, llvm/lib/MC MCSymbolGOFF.cpp GOFFObjectWriter.cpp

Remove hasLDAttributes() and hasERAttributes()

Just inline and simplify the expressions.
DeltaFile
+11-10llvm/lib/Target/SystemZ/MCTargetDesc/SystemZHLASMAsmStreamer.cpp
+0-9llvm/lib/MC/MCSymbolGOFF.cpp
+4-2llvm/lib/MC/GOFFObjectWriter.cpp
+0-3llvm/include/llvm/MC/MCSymbolGOFF.h
+15-244 files

LLVM/project 2b93f65llvm/include/llvm/MC MCSymbolGOFF.h MCGOFFStreamer.h, llvm/lib/MC MCGOFFStreamer.cpp MCSymbolGOFF.cpp

Address most review comments
DeltaFile
+1-67llvm/lib/MC/MCGOFFStreamer.cpp
+58-6llvm/lib/MC/MCSymbolGOFF.cpp
+13-1llvm/include/llvm/MC/MCSymbolGOFF.h
+3-9llvm/lib/MC/GOFFObjectWriter.cpp
+0-6llvm/include/llvm/MC/MCGOFFStreamer.h
+0-4llvm/lib/Target/SystemZ/MCTargetDesc/SystemZTargetStreamer.cpp
+75-932 files not shown
+76-958 files