FailedChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [OPENMP50]Add if clause in target teams idistribute simd directive. (details)
  2. [OPENMP][DOCS]Mark if clause on simd done, NFC. (details)
  3. Always -I clang/include when tblgen'ing in Clang. (details)
  4. Move Basic{Reader,Writer} emission into ASTPropsEmitter; NFC. (details)
  5. Replace tabs with spaces. (details)
  6. Add the ability to use property-based serialization for "cased" types. (details)
  7. Use property-based serialization for DeclarationName. (details)
  8. Add the ability to declare helper variables when reading properties from (details)
  9. Add the ability for properties to be conditional on other properties. (details)
  10. Use property-based serialization for TemplateName. (details)
  11. Add Optional::map. (details)
  12. Use property-based serialization for TemplateArgument. (details)
  13. Forward {read,write}SomeEnumType to {read,write}Enum instead of directly (details)
  14. [OPENMP][DOCS]Claim simd nontemporal clause, NFC. (details)
  15. gn build: (manually) merge c82e4ef69 (details)
  16. [ELF] De-template PltSection::addEntry. NFC (details)
  17. [ELF] Delete relOff from TargetInfo::writePLT (details)
  18. [ELF] Delete unused declaration addIRelativeRelocs after D65995. NFC (details)
  19. Only run mangled_names.test if python3 is available. (details)
  20. [WebAssembly] Replace SIMD int min/max builtins with patterns (details)
  21. [InstCombine] Teach removeBitcastsFromLoadStoreOnMinMax not to change (details)
  22. [LoopFusion] Restrict loop fusion to rotated loops. (details)
  23. [NFC-I] Remove hack for fp-classification builtins (details)
  24. Fix a bug in the property-based serialization of dependent template (details)
  25. [TSan][Darwin] Avoid calling pthread_self() before libpthread is (details)
  26. [AArch64][SVE] Add patterns for logical immediate operations. (details)
  27. git-llvm: Add option to push to Github with SSH (details)
  28. Revert "[NFC-I] Remove hack for fp-classification builtins" (details)
  29. Add default initialization to compressed_pair. (details)
  30. [X86] Add x86 triple to command line in mxcsr-reg-usage.ll (details)
  31. [lldb] Respect previously set values of LLDB_TABLEGEN_EXE (details)
  32. [coroutines][PR41909] Generalize fix from D62550 (details)
  33. [WebAssembly] Setting export_name implies llvm.used (details)
  34. [AArch64][SVE] Change pattern generation code to fix (details)
  35. [RISCV] Added isCompressibleInst() to estimate size in (details)
  36. Honor  -fuse-init-array when os is not specified on x86 (details)
  37. [llvm][MIRVRegNamerUtils] Adding hashing on CImm / FPImm (details)
  38. [libc++] Rework compressed pair constructors. (details)
  39. [NFC][llvm][MIRVRegNamerUtils] Moving some switch cases and altering (details)
  40. [libc++] Add __default_init_tag to basic_string constructors (details)
  41. [llvm] Add llvm-lipo dependency to runtimes (details)
  42. Change `asan/TestCases/Darwin/malloc_zone-protected.cpp` to call abort (details)
  43. [llvm/runtimes] Add runtimes as a dependency of clang-bootstrap-deps (details)
  44. [LoopUtils] Updated deleteDeadLoop() to handle loop nest. (details)
  45. [LoopUtils] Updated deleteDeadLoop() to handle loop nest. (details)
  46. gn build: Merge c066ff11d84 (details)
  47. [libomptarget][nfc] Wrap cuda min() in target_impl (details)
  48. Run all threads when extending a next range over a call. (details)
  49. [c++20] Add deprecation warnings for the expression forms deprecated by (details)
  50. If constant evaluation fails due to an unspecified pointer comparison, (details)
  51. [c++20] P1959R0: Remove support for std::*_equality. (details)
  52. [SelectionDAG] Add the fpexcept flag to the SelectionDAG dumping output (details)
  53. Explicitly specify -std=c++11 and include <mutex> and (details)
  54. [libomptarget][nfc] Move timer functions behind target_impl (details)
  55. Check whether the destination is a complete type in a static_cast (or (details)
  56. [Attributor][NFC] Clang format the Attributor (details)
  57. Revert "[LoopUtils] Updated deleteDeadLoop() to handle loop nest." (details)
  58. gn build: Merge ec4749e3b8d (details)
  59. [NFC][Test][PowerPC] Add the test to verify the mask with constant (details)
  60. [MC] Delete redundant alignment update from (details)
Commit 411e81a4e391d9e8195e4b2a0a62bc60582e298a by a.bataev
[OPENMP50]Add if clause in target teams idistribute simd directive.
According to OpenMP 5.0, if clause can be used in for simd directive. If
condition in the if clause if false, the non-vectorized version of the
loop must be executed.
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_simd_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_simd_if_messages.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_simd_ast_print.cpp
Commit ec3854e58a62c9f255ae18e5982346f917456d85 by a.bataev
[OPENMP][DOCS]Mark if clause on simd done, NFC.
The file was modifiedclang/docs/OpenMPSupport.rst
Commit c82e4ef6960b9f09fc77abc10f374417007f5f00 by rjmccall
Always -I clang/include when tblgen'ing in Clang.
The file was modifiedclang/include/clang/AST/CMakeLists.txt
The file was modifiedclang/cmake/modules/AddClang.cmake
The file was modifiedclang/include/clang/AST/TypeProperties.td
Commit 00bc76edddb5a6cd417610e96289a5dc15245867 by rjmccall
Move Basic{Reader,Writer} emission into ASTPropsEmitter; NFC.
I'm going to introduce some uses of the property read/write methods.
The file was modifiedclang/utils/TableGen/ClangASTPropertiesEmitter.cpp
Commit 41d935f2c619821f4cde05ad779265ebaac5fcd7 by rjmccall
Replace tabs with spaces.
The file was modifiedclang/include/clang/AST/TypeProperties.td
The file was modifiedclang/include/clang/AST/PropertiesBase.td
Commit efd0dfbd700d724f148468e707b8ba5f28e847e6 by rjmccall
Add the ability to use property-based serialization for "cased" types.
This patch doesn't actually use this serialization for anything, but
follow-ups will move the current handling of various standard types over
to this.
The file was modifiedclang/include/clang/AST/AbstractBasicReader.h
The file was modifiedclang/include/clang/Basic/TypeNodes.td
The file was modifiedclang/utils/TableGen/ClangASTPropertiesEmitter.cpp
The file was addedclang/include/clang/Basic/ASTNode.td
The file was modifiedclang/include/clang/Basic/CommentNodes.td
The file was modifiedclang/utils/TableGen/ClangASTNodesEmitter.cpp
The file was modifiedclang/utils/TableGen/ASTTableGen.cpp
The file was modifiedclang/include/clang/AST/PropertiesBase.td
The file was modifiedclang/include/clang/Basic/DeclNodes.td
The file was modifiedclang/include/clang/Basic/StmtNodes.td
The file was modifiedclang/include/clang/AST/AbstractBasicWriter.h
The file was modifiedclang/utils/TableGen/ASTTableGen.h
Commit 867570a2384e3445c5658f0f84cfe2acca13becc by rjmccall
Use property-based serialization for DeclarationName.
The file was modifiedclang/include/clang/AST/AbstractBasicWriter.h
The file was modifiedclang/include/clang/AST/PropertiesBase.td
The file was modifiedclang/include/clang/AST/AbstractBasicReader.h
Commit 256ec9964462ea260871f8233ab3923dbdf65497 by rjmccall
Add the ability to declare helper variables when reading properties from
a value.
This is useful when the properties of a case are actually read out of a
specific structure, as with TemplateName.
The file was modifiedclang/include/clang/AST/PropertiesBase.td
The file was modifiedclang/utils/TableGen/ClangASTPropertiesEmitter.cpp
The file was modifiedclang/utils/TableGen/ASTTableGen.h
Commit 6887ccfcf283b47f4d7fc58c7099becd79d7c749 by rjmccall
Add the ability for properties to be conditional on other properties.
This will be required by TemplateName.
The file was modifiedclang/utils/TableGen/ClangASTPropertiesEmitter.cpp
The file was modifiedclang/include/clang/AST/TypeProperties.td
The file was modifiedclang/include/clang/AST/PropertiesBase.td
The file was modifiedclang/utils/TableGen/ASTTableGen.h
Commit a9db0d9f17f39d6aded8cdae675d94a94d63bc99 by rjmccall
Use property-based serialization for TemplateName.
The file was modifiedclang/include/clang/AST/AbstractBasicWriter.h
The file was modifiedclang/include/clang/AST/PropertiesBase.td
The file was modifiedclang/include/clang/AST/AbstractBasicReader.h
The file was modifiedclang/include/clang/AST/TemplateName.h
Commit 2e2d142efe5652520d3ac98781d837d2c83f617a by rjmccall
Add Optional::map.
The file was modifiedllvm/include/llvm/ADT/Optional.h
Commit da74c4d2d822f66182e875edadd94e48825cd23a by rjmccall
Use property-based serialization for TemplateArgument.
The file was modifiedclang/include/clang/AST/PropertiesBase.td
The file was modifiedclang/include/clang/AST/AbstractBasicReader.h
The file was modifiedclang/include/clang/AST/AbstractBasicWriter.h
The file was modifiedclang/include/clang/Serialization/ASTRecordReader.h
Commit b699fe8b951e14c6a892a58535976c252eb16210 by rjmccall
Forward {read,write}SomeEnumType to {read,write}Enum instead of directly
to {read,write}UInt32.
This will be useful for textual formats.  NFC.
The file was modifiedclang/include/clang/AST/AbstractBasicReader.h
The file was modifiedclang/utils/TableGen/ClangASTPropertiesEmitter.cpp
The file was modifiedclang/include/clang/AST/AbstractBasicWriter.h
Commit 06a6b0ad6584c16fa85a3e6bbcfd8ab87200baca by a.bataev
[OPENMP][DOCS]Claim simd nontemporal clause, NFC.
The file was modifiedclang/docs/OpenMPSupport.rst
Commit 6a71355e522368387e33ecfa3458b455db5804fc by thakis
gn build: (manually) merge c82e4ef69
The file was modifiedllvm/utils/gn/secondary/clang/include/clang/AST/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/clang/utils/TableGen/clang_tablegen.gni
Commit 98afa2c1f1a040afc02be10d5a58bf7e87c38cc1 by maskray
[ELF] De-template PltSection::addEntry. NFC
The file was modifiedlld/ELF/Relocations.cpp
The file was modifiedlld/ELF/SyntheticSections.cpp
The file was modifiedlld/ELF/SyntheticSections.h
Commit 90d195d026f5c90e26f09614e23d4112b3dfaaa1 by maskray
[ELF] Delete relOff from TargetInfo::writePLT
This change only affects EM_386. relOff can be computed from `index`
easily, so it is unnecessarily passed as a parameter.
Both in.plt and in.iplt entries are written by writePLT. For in.iplt,
the instruction `push reloc_offset` will change because `index` is now
different. Fortunately, this does not matter because `push; jmp` is only
used by PLT. IPLT does not need the code sequence.
Reviewed By: grimar, ruiu
Differential Revision: https://reviews.llvm.org/D71518
The file was modifiedlld/ELF/Arch/RISCV.cpp
The file was modifiedlld/ELF/Arch/SPARCV9.cpp
The file was modifiedlld/ELF/Arch/PPC64.cpp
The file was modifiedlld/test/ELF/gnu-ifunc-i386.s
The file was modifiedlld/test/ELF/gnu-ifunc-plt-i386.s
The file was modifiedlld/ELF/Arch/ARM.cpp
The file was modifiedlld/ELF/Arch/X86.cpp
The file was modifiedlld/ELF/Target.h
The file was modifiedlld/ELF/Arch/X86_64.cpp
The file was modifiedlld/ELF/Arch/Mips.cpp
The file was modifiedlld/ELF/Arch/Hexagon.cpp
The file was modifiedlld/ELF/Arch/AArch64.cpp
The file was modifiedlld/ELF/Arch/PPC.cpp
The file was modifiedlld/ELF/SyntheticSections.cpp
Commit ee912fe6a15fda430320b1ce7140e4f18156719a by maskray
[ELF] Delete unused declaration addIRelativeRelocs after D65995. NFC
The file was modifiedlld/ELF/Relocations.h
Commit cc802ea67beb66d2f8a935e647c3aedcf7848211 by thakis
Only run mangled_names.test if python3 is available.
The %update_cc_test_checks substitution only gets added if python3 is on
path, so the test fails if it isn't. Don't run the test when it would
fail.
Also include the '%' in the arg to add_update_script_substition(), to
help greppability.
The file was modifiedllvm/test/tools/UpdateTestChecks/lit.local.cfg
The file was modifiedllvm/test/tools/UpdateTestChecks/update_cc_test_checks/mangled_names.test
Commit 3a93756dfbb0dcb7c62fcbe5b0ab8f8591fc9721 by tlively
[WebAssembly] Replace SIMD int min/max builtins with patterns
Summary: The instructions were originally implemented via builtins and
intrinsics so users would have to explicitly opt-in to using them. This
was useful while were validating whether these instructions should have
been merged into the spec proposal. Now that they have been, we can use
normal codegen patterns, so the intrinsics and builtins are no longer
useful.
Reviewers: aheejin
Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish,
cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D71500
The file was modifiedclang/include/clang/Basic/BuiltinsWebAssembly.def
The file was modifiedclang/test/CodeGen/builtins-wasm.c
The file was modifiedllvm/include/llvm/IR/IntrinsicsWebAssembly.td
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/simd-intrinsics.ll
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/simd-arith.ll
Commit 02f644c59ad0d480285b569a0c5ecbd038866ce8 by craig.topper
[InstCombine] Teach removeBitcastsFromLoadStoreOnMinMax not to change
the size of a store.
We can change the type as long as we don't change the size.
Fixes PR44306
Differential Revision: https://reviews.llvm.org/D71532
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
The file was modifiedllvm/test/Transforms/InstCombine/PR37526.ll
Commit ff07fc66d9eef577f3b44716f72e581a18cd9ac9 by kbarton
[LoopFusion] Restrict loop fusion to rotated loops.
Summary: This patch restricts loop fusion to only consider rotated loops
as valid candidates. This simplifies the analysis and transformation and
aligns with other loop optimizations.
Reviewers: jdoerfert, Meinersbur, dmgreen, etiotto, Whitney, fhahn,
hfinkel
Reviewed By: Meinersbur
Subscribers: ormris, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71025
The file was modifiedllvm/test/Transforms/LoopFusion/loop_nest.ll
The file was modifiedllvm/test/Transforms/LoopFusion/simple.ll
The file was modifiedllvm/test/Transforms/LoopFusion/four_loops.ll
The file was modifiedllvm/lib/Transforms/Scalar/LoopFuse.cpp
The file was modifiedllvm/test/Transforms/LoopFusion/diagnostics_missed.ll
The file was modifiedllvm/test/Transforms/LoopFusion/cannot_fuse.ll
Commit b1e542f302c1ed796ad9f703d4d36e010afcb914 by erich.keane
[NFC-I] Remove hack for fp-classification builtins
The FP-classification builtins (__builtin_isfinite, etc) use variadic
packs in the definition file to mean an overload set.  Because of that,
floats were converted to doubles, which is incorrect. There WAS a patch
to remove the cast after the fact.
THis patch switches these builtins to just be custom type checking,
calls the implicit conversions for the integer members, and makes sure
the correct L->R casts are put into place, then does type checking like
normal.
A future direction (that wouldn't be NFC) would consider making
conversions for the floating point parameter legal.
The file was addedclang/test/Sema/builtin-fpclassification.c
The file was modifiedclang/include/clang/Basic/Builtins.def
The file was modifiedclang/test/Sema/crash-invalid-builtin.c
The file was modifiedclang/lib/Sema/SemaChecking.cpp
Commit 803403afc83f659be1c620eb1896dcf704b18b0a by rjmccall
Fix a bug in the property-based serialization of dependent template
names.
Apparently we didn't test this in the test suite because we have a lot
of redundant ways of representing this situation that kick in in the
more common situations.  For example, DependentTST stores a qualifier +
identifier pair rather than a TemplateName.
The file was modifiedclang/test/PCH/cxx-templates.h
The file was modifiedclang/include/clang/AST/PropertiesBase.td
The file was modifiedclang/test/PCH/cxx-templates.cpp
Commit f9a706a36ae5dcb87b0b6649d0c80e989400f48e by julian.lettner
[TSan][Darwin] Avoid calling pthread_self() before libpthread is
initialized
This skips calling `pthread_self` when `main_thread_identity` hasn't
been initialized yet.  `main_thread_identity` is only ever assigned in
`__tsan::InitializePlatform`.  This change should be relatively safe; we
are not changing behavior other than skipping the call to `pthread_self`
when `main_thread_identity == 0`.
rdar://57822138
Reviewed By: kubamracek
Differential Revision: https://reviews.llvm.org/D71559
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp
Commit f933878991a9b00f3fcf96066678a8816da0a764 by danilo.carvalho.grael
[AArch64][SVE] Add patterns for logical immediate operations.
Summary: Add pattern matching for the following SVE logical vector and
immediate instructions:
- and/bic, orr/orn, eor/eon.
Reviewers: sdesmalen, huntergr, rengolin, efriedma, c-rhodes, mgudim,
kmclaughlin
Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl,
llvm-commits, amehsan
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71483
The file was modifiedllvm/include/llvm/IR/IntrinsicsAArch64.td
The file was addedllvm/test/CodeGen/AArch64/sve-int-log-imm.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
The file was modifiedllvm/lib/Target/AArch64/SVEInstrFormats.td
Commit 38dd2d50924a3795d1ad61c7c0873632255f324a by v.churavy
git-llvm: Add option to push to Github with SSH
Summary: For users with 2FA Github password challenge can be rather
cumbersome and I personally use key based authentication through SSH.
This fixes the SSH feature that was present and exposes it as a command
line option.
Reviewers: tstellar
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71534
The file was modifiedllvm/utils/git-svn/git-llvm
Commit 3f22b4721e6c9859c392d9891411cbc8d9e10c70 by erich.keane
Revert "[NFC-I] Remove hack for fp-classification builtins"
This reverts commit b1e542f302c1ed796ad9f703d4d36e010afcb914.
The original 'hack' didn't chop out fp-16 to double conversions, so
systems that use FP16ConversionIntrinsics end up in IR-CodeGen with an
i16 type isntead of a float type (like PPC64-BE).  The bots noticed
this.
Reverting until I figure out how to fix this
The file was removedclang/test/Sema/builtin-fpclassification.c
The file was modifiedclang/test/Sema/crash-invalid-builtin.c
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedclang/include/clang/Basic/Builtins.def
Commit 0fa118a9da6786a0aaf81e309d8c3b38bc5f61dd by eric
Add default initialization to compressed_pair.
This change introduces the __default_init_tag to memory, and a
corresponding element constructor to allow for default initialization of
either of the pair values. This is useful for classes such as
std::string where most (all) constructors explicitly initialize the
values in the constructor.
Patch by Martijn Vels (mvels@google.com) Reviewed as
https://reviews.llvm.org/D70617
The file was modifiedlibcxx/include/memory
The file was addedlibcxx/test/libcxx/memory/compressed_pair/compressed_pair.pass.cpp
Commit 2ff251c6a39c55377fbcb0a4786a1bc4f7a60dda by craig.topper
[X86] Add x86 triple to command line in mxcsr-reg-usage.ll
I'm not sure how this hasn't been causing any issues.
The file was modifiedllvm/test/CodeGen/X86/mxcsr-reg-usage.ll
Commit 3fbe518a102a344abbd837e364a404c0c695d183 by apl
[lldb] Respect previously set values of LLDB_TABLEGEN_EXE
If you set LLDB_TABLEGEN_EXE in a CMake cache file or in the CMake
invocation line, your setting isn't respected. Setting up the tablegen
for the host will overwrite the value that we set LLDB_TABLEGEN_EXE to,
which defeats the whole point of setting it in the first place.
The file was modifiedlldb/utils/TableGen/CMakeLists.txt
Commit 376cf43729c8025eecbd2969522c5687f2a3919f by modocache
[coroutines][PR41909] Generalize fix from D62550
Summary: In https://reviews.llvm.org/D62550 @rsmith pointed out that
there are many situations in which a coroutine body statement may be
transformed/rebuilt as part of a template instantiation, and my naive
check whether the coroutine was a generic lambda was insufficient.
This is indeed true, as I've learned by reading more of the
TreeTransform code. Most transformations are written in a way that
doesn't assume the resulting types are not dependent types. So the
assertion in 'TransformCoroutineBodyStmt', that the promise type must no
longer be dependent, is out of place.
This patch removes the assertion, spruces up some code comments, and
adds a test that would have failed with my naive check from
https://reviews.llvm.org/D62550.
Reviewers: GorNishanov, rsmith, lewissbaker
Reviewed By: rsmith
Subscribers: junparser, EricWF, rsmith, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70579
The file was modifiedclang/test/SemaCXX/coroutines.cpp
The file was modifiedclang/lib/Sema/TreeTransform.h
Commit 0a1e349a7933f7880971533175e11b4bfd22bd53 by sbc
[WebAssembly] Setting export_name implies llvm.used
This change updates the clang front end to add symbols to llvm.used when
they have explicit export_name attribute.
Differential Revision: https://reviews.llvm.org/D71493
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was modifiedclang/test/CodeGen/wasm-export-name.c
Commit 002adabb3a251a81ef304353eefb1bf96ec388f6 by maskray
[AArch64][SVE] Change pattern generation code to fix
-Wimplicit-fallthrough after D71483
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
Commit d7af86bdd0bdc9509fd7fdc3ae34bb0f4b9d269f by apazos
[RISCV] Added isCompressibleInst() to estimate size in
getInstSizeInBytes()
Summary: Modified compression emitter tablegen backend to emit
isCompressibleInst() check which in turn is used by getInstSizeInBytes()
to better estimate instruction size. Note the generation of compressed
instructions in RISC-V happens late in the assembler therefore
instruction size estimate might be off if computed before.
Reviewers: lenary, asb, luismarques, lewis-revill
Reviewed By: asb
Subscribers: sameer.abuasal, lewis-revill, hiraditya, asb, rbar,
johnrusso, simoncook, sabuasal, niosHD, kito-cheng, shiva0217, MaskRay,
zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o,
rkruppe, PkmX, jocewei, psnobl, benna, Jim, lenary, s.egerton, pzheng,
llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D68290
The file was modifiedllvm/utils/TableGen/RISCVCompressInstEmitter.cpp
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfo.cpp
Commit aa5ee8f244441a8ea103a7e0ed8b6f3e74454516 by rnk
Honor  -fuse-init-array when os is not specified on x86
Currently -fuse-init-array option is not effective when target triple
does not specify os, on x86,x86_64. i.e.
// -fuse-init-array is not honored.
$ clang -target i386 -fuse-init-array test.c -S
// -fuse-init-array is honored.
$ clang -target i386-linux -fuse-init-array test.c -S
This patch fixes first case. And does cleanup.
Reviewers: rnk, craig.topper, fhahn, echristo
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D71360
The file was modifiedllvm/lib/Target/Hexagon/HexagonTargetObjectFile.cpp
The file was modifiedllvm/lib/Target/Lanai/LanaiTargetObjectFile.cpp
The file was modifiedllvm/lib/Target/Mips/MipsTargetObjectFile.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCTargetObjectFile.cpp
The file was modifiedllvm/lib/Target/X86/X86TargetObjectFile.cpp
The file was modifiedllvm/test/CodeGen/X86/constructor.ll
The file was modifiedllvm/lib/Target/X86/X86TargetMachine.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetObjectFile.cpp
The file was modifiedllvm/lib/Target/X86/X86TargetObjectFile.h
The file was modifiedllvm/lib/Target/RISCV/RISCVTargetObjectFile.cpp
The file was modifiedllvm/lib/Target/Sparc/SparcTargetObjectFile.cpp
The file was modifiedllvm/test/CodeGen/X86/init-priority.ll
The file was modifiedllvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
Commit f63b64c0c3b486f164c3c66cce9f13df2bac6b6e by puyan
[llvm][MIRVRegNamerUtils] Adding hashing on CImm / FPImm
MachineOperands.
This patch makes it so that cases where multiple instructions that
differ only in their ConstantInt or ConstantFP MachineOperand values no
longer collide. For instance:
%0:_(s1) = G_CONSTANT i1 true
%1:_(s1) = G_CONSTANT i1 false
%2:_(s32) = G_FCONSTANT float 1.0
%3:_(s32) = G_FCONSTANT float 0.0
Prior to this patch the first two instructions would collide together.
Also, the last two G_FCONSTANT instructions would also collide. Now they
will no longer collide.
Differential Revision: https://reviews.llvm.org/D71558
The file was addedllvm/test/CodeGen/MIR/Generic/CFPImmMIRCanonHash.mir
The file was modifiedllvm/lib/CodeGen/MIRVRegNamerUtils.cpp
Commit 549545b64aab77d2a1784062451ee1c33f8324d2 by eric
[libc++] Rework compressed pair constructors.
This patch de-duplicates most compressed pair constructors to use the
same code in C++11 and C++03.
Part of doing that is deleting the "__second_tag()" and replacing it
with a "__value_init_tag()" which has the same effect, but allows for
the removal of the special "one-arg" first element constructor.
This patch is intended to have no semantic change.
The file was modifiedlibcxx/include/list
The file was modifiedlibcxx/include/__functional_03
The file was modifiedlibcxx/include/__tree
The file was modifiedlibcxx/include/forward_list
The file was modifiedlibcxx/test/libcxx/containers/unord/unord.set/missing_hash_specialization.fail.cpp
The file was modifiedlibcxx/include/vector
The file was modifiedlibcxx/include/__split_buffer
The file was modifiedlibcxx/include/__hash_table
The file was modifiedlibcxx/include/memory
The file was modifiedlibcxx/include/string
The file was modifiedlibcxx/include/deque
The file was modifiedlibcxx/include/future
Commit 204dfabfe68a978620258baaa0bacb55cbd6859d by puyan
[NFC][llvm][MIRVRegNamerUtils] Moving some switch cases and altering
comments.
The file was modifiedllvm/lib/CodeGen/MIRVRegNamerUtils.cpp
Commit a53534a9f6404d1727fd6e9b13b6dc3089523e10 by eric
[libc++] Add __default_init_tag to basic_string constructors
This removes unneeded zero initialization of string data.
For example, given the below code:
void Init(void *mem) {
   new (mem) std::string("Hello World");
}
Assembly before:
Init(void*):
       xorps   xmm0, xmm0
       movups  xmmword ptr [rdi], xmm0
       mov     qword ptr [rdi + 16], 0
       mov     byte ptr [rdi], 22
       movabs  rax, 8022916924116329800
       mov     qword ptr [rdi + 1], rax
       mov     dword ptr [rdi + 8], 1684828783
       mov     byte ptr [rdi + 12], 0
       ret
Assembly after:
Init():
       mov     byte ptr [rdi], 22
       movabs  rax, 8022916924116329800
       mov     qword ptr [rdi + 1], rax
       mov     dword ptr [rdi + 8], 1684828783
       mov     byte ptr [rdi + 12], 0
       ret
Patch by Martijn Vels (mvels@google.com) Reviewed as
https://reviews.llvm.org/D70621
The file was modifiedlibcxx/include/string
Commit f5bbe387e88511cd0ea09bc41742bbc1159de938 by apl
[llvm] Add llvm-lipo dependency to runtimes
Summary: Currently, llvm-lipo is not specified as a dependency, but it
is needed when building Darwin-x86_64 runtimes, so I'm adding it to the
dependencies lists.
Reviewers: alexshap, beanz, phosek, compnerd, smeenai, mtrent, plotfi,
xiaobai
Reviewed By: phosek, smeenai
Subscribers: smeenai, mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71429
The file was modifiedllvm/cmake/modules/LLVMExternalProjectUtils.cmake
The file was modifiedllvm/runtimes/CMakeLists.txt
Commit e2bcc33b50f6ca8f37ce2d501b88119fc21eb783 by dan
Change `asan/TestCases/Darwin/malloc_zone-protected.cpp` to call abort
so that it **always crashes**.
Summary: This is needed because on some platforms we can't install
signal handlers and so the application just traps (i.e. crashes) rather
than being intercepted by ASan's signal handler which in the default
Darwin config doesn't exit with a crashing exit code.
rdar://problem/57984547
Reviewers: yln, kubamracek, jfb
Subscribers: #sanitizers, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D71573
The file was modifiedcompiler-rt/test/asan/TestCases/Darwin/malloc_zone-protected.cpp
Commit d6777207b4fd4868a4409cc39936156ec3aa3c50 by apl
[llvm/runtimes] Add runtimes as a dependency of clang-bootstrap-deps
Summary: With the new LLVM_ENABLE_RUNTIMES option introduced in
https://reviews.llvm.org/D40233, compiler-rt can now be included as a
runtime. Since compiler-rt is needed for PGO, runtimes needs to be
included as a dependency of clang-bootstrap-deps when building the
stage1 compiler.
Reviewers: beanz, phosek, compnerd, smeenai, plotfi, xiaobai
Reviewed By: phosek
Subscribers: smeenai, beanz, phosek, mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D71430
The file was modifiedllvm/runtimes/CMakeLists.txt
Commit c066ff11d84a7797503ad5a44c4129136926dc85 by whitneyt
[LoopUtils] Updated deleteDeadLoop() to handle loop nest.
Reviewer: kariddi, sanjoy, reames, Meinersbur, bmahjour, etiotto,
kbarton Reviewed By: Meinersbur Subscribers: mgorny, hiraditya,
llvm-commits Tag: LLVM Differential Revision:
https://reviews.llvm.org/D70939
The file was modifiedllvm/lib/Transforms/Utils/LoopUtils.cpp
The file was modifiedllvm/unittests/Transforms/Utils/CMakeLists.txt
Commit cd09fee3d63296dd2df0bbb1fae363ca9f311d44 by whitneyt
[LoopUtils] Updated deleteDeadLoop() to handle loop nest.
Reviewer: kariddi, sanjoy, reames, Meinersbur, bmahjour, etiotto,
kbarton Reviewed By: Meinersbur Subscribers: mgorny, hiraditya,
llvm-commits Tag: LLVM Differential Revision:
https://reviews.llvm.org/D70939
The file was addedllvm/unittests/Transforms/Utils/LoopUtilsTest.cpp
Commit 7a31678b71465da7e6a69bb3d1987823f41589d6 by llvmgnsyncbot
gn build: Merge c066ff11d84
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/Transforms/Utils/BUILD.gn
Commit 53bcd1e1413c878d2d988df80142a430a9abf24a by jonathanchesterfield
[libomptarget][nfc] Wrap cuda min() in target_impl
Summary:
[libomptarget][nfc] Wrap cuda min() in target_impl
nvptx forwards to cuda min, amdgcn implements directly. Sufficient to
build parallel.cu for amdgcn, added to CMakeLists.
All call sites are homogenous except one that passes a uint32_t and an
int32_t. This could be smoothed over by taking two type parameters and
some care over the return type, but overall I think the inline
<uint32_t> calling attention to what was an implicit sign conversion is
cleaner.
Reviewers: ABataev, jdoerfert
Reviewed By: jdoerfert
Subscribers: jvesely, mgorny, openmp-commits
Tags: #openmp
Differential Revision: https://reviews.llvm.org/D71580
The file was modifiedopenmp/libomptarget/deviceRTLs/amdgcn/CMakeLists.txt
The file was modifiedopenmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
The file was modifiedopenmp/libomptarget/deviceRTLs/common/src/parallel.cu
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/src/reduction.cu
Commit 434905b97d961531286d4b49c7ee1969f7cbea0e by jingham
Run all threads when extending a next range over a call.
If you don't do this you end up running arbitrary code with only one
thread allowed to run, which can cause deadlocks.
<rdar://problem/56422478>
Differential Revision: https://reviews.llvm.org/D71440
The file was modifiedlldb/include/lldb/Core/Disassembler.h
The file was addedlldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/TestStepOverDoesntBlock.py
The file was modifiedlldb/source/Core/Disassembler.cpp
The file was modifiedlldb/source/Target/Process.cpp
The file was addedlldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp
The file was modifiedlldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile
The file was removedlldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.c
The file was modifiedlldb/include/lldb/Target/ThreadPlanStepRange.h
The file was modifiedlldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/TestExprDoesntBlock.py
The file was addedlldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile
The file was addedlldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp
The file was modifiedlldb/source/Target/ThreadPlanStepRange.cpp
Commit 4b0029995853fe37d1dc95ef96f46697c743fcad by richard
[c++20] Add deprecation warnings for the expression forms deprecated by
P1120R0.
This covers:
* usual arithmetic conversions (comparisons, arithmetic, conditionals)
  between different enumeration types
* usual arithmetic conversions between enums and floating-point types
* comparisons between two operands of array type
The deprecation warnings are on-by-default (in C++20 compilations); it
seems likely that these forms will become ill-formed in C++23, so
warning on them now by default seems wise.
For the first two bullets, off-by-default warnings were also added for
all the cases where we didn't already have warnings (covering language
modes prior to C++20). These warnings are in subgroups of the existing
-Wenum-conversion (except that the first case is not warned on if either
enumeration type is anonymous, consistent with our existing
-Wenum-conversion warnings).
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedclang/test/SemaCXX/self-comparison.cpp
The file was modifiedclang/test/Sema/switch.c
The file was addedclang/test/CXX/expr/expr.arith.conv/p2.cpp
The file was modifiedclang/test/SemaCXX/deprecated.cpp
The file was modifiedclang/test/Sema/warn-conditional-emum-types-mismatch.c
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/lib/Sema/SemaExprCXX.cpp
The file was modifiedclang/www/cxx_status.html
The file was modifiedclang/test/SemaCXX/warn-enum-compare.cpp
The file was modifiedclang/lib/AST/Type.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/include/clang/AST/Type.h
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
Commit 4e9f1379b9cd7ddce8cf182707e976ebceb72b05 by richard
If constant evaluation fails due to an unspecified pointer comparison,
produce a note saying that rather than the default "evaluation failed"
note.
The file was modifiedclang/include/clang/Basic/DiagnosticASTKinds.td
The file was modifiedclang/test/CXX/expr/expr.const/p2-0x.cpp
The file was modifiedclang/test/SemaCXX/constant-expression-cxx2a.cpp
The file was modifiedclang/lib/AST/ExprConstant.cpp
The file was modifiedclang/test/SemaCXX/constant-expression-cxx11.cpp
Commit f495de43bd5da50286da6020e508d106cfc60f57 by richard
[c++20] P1959R0: Remove support for std::*_equality.
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/include/clang/AST/ComparisonCategories.h
The file was modifiedclang/lib/AST/Interp/Interp.h
The file was modifiedclang/lib/Sema/SemaOverload.cpp
The file was modifiedclang/test/SemaCXX/constant-expression-cxx2a.cpp
The file was modifiedclang/test/CodeGenCXX/cxx2a-compare.cpp
The file was modifiedclang/test/SemaCXX/Inputs/std-compare.h
The file was modifiedclang/include/clang/AST/Type.h
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/test/SemaCXX/std-compare-cxx2a.cpp
The file was modifiedclang/lib/CodeGen/CGExprAgg.cpp
The file was modifiedclang/lib/AST/ComparisonCategories.cpp
The file was modifiedclang/lib/AST/ExprConstant.cpp
The file was modifiedclang/www/cxx_status.html
The file was modifiedclang/test/SemaCXX/compare-cxx2a.cpp
The file was modifiedclang/test/CodeGenCXX/Inputs/std-compare.h
The file was modifiedclang/test/PCH/Inputs/std-compare.h
Commit 4e48513b472bddf239fc4a9953b0e8c856f284ef by craig.topper
[SelectionDAG] Add the fpexcept flag to the SelectionDAG dumping output
so we can better see when its not propagating.
We're currently losing this flag in type legalization and probably other
places when we expand strict fp nodes. This will make reading logs
easier.
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
Commit 9e9c5f0a6346ef02e31d5e8b91e6aab16a2e9370 by jingham
Explicitly specify -std=c++11 and include <mutex> and
<condition_variable>.
These files built on macos but not on Debian Linux.  Let's see if this
fixes it.
The file was modifiedlldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/locking.cpp
The file was modifiedlldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/Makefile
The file was modifiedlldb/packages/Python/lldbsuite/test/commands/expression/no-deadlock/locking.cpp
The file was modifiedlldb/packages/Python/lldbsuite/test/lang/c/step_over_no_deadlock/Makefile
Commit ce12a523b0e1a64cea63ba099642d7f3492a3791 by jonathanchesterfield
[libomptarget][nfc] Move timer functions behind target_impl
Summary: [libomptarget][nfc] Move timer functions behind target_impl
Reviewers: jdoerfert, ABataev, grokos
Reviewed By: jdoerfert
Subscribers: jvesely, openmp-commits
Tags: #openmp
Differential Revision: https://reviews.llvm.org/D71584
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/src/libcall.cu
The file was modifiedopenmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
Commit eea8ba097c4a86632b88291bea51eb710f8ae4fb by richard
Check whether the destination is a complete type in a static_cast (or
C-style cast) to an enumeration type.
We previously forgot to check this, and happened to get away with it
(with bad diagnostics) only because we misclassified incomplete
enumeration types as not being unscoped enumeration types. This also
fixes the misclassification.
The file was modifiedclang/test/SemaCXX/enum.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/lib/AST/Type.cpp
The file was modifiedclang/lib/Sema/SemaCast.cpp
Commit 0bc3336ac168f52b6a6e3297a9cc3eb579f047f4 by johannes
[Attributor][NFC] Clang format the Attributor
The Attributor is always kept formatted so diffs are cleaner.
Sometime we get out of sync for various reasons so we need to format the
file once in a while.
The file was modifiedllvm/lib/Transforms/IPO/Attributor.cpp
Commit ec4749e3b8d0366b11eb01d513608a823871f58e by whitneyt
Revert "[LoopUtils] Updated deleteDeadLoop() to handle loop nest."
This reverts commit cd09fee3d63296dd2df0bbb1fae363ca9f311d44. This
reverts commit c066ff11d84a7797503ad5a44c4129136926dc85.
The file was modifiedllvm/lib/Transforms/Utils/LoopUtils.cpp
The file was modifiedllvm/unittests/Transforms/Utils/CMakeLists.txt
The file was removedllvm/unittests/Transforms/Utils/LoopUtilsTest.cpp
Commit 0b969fa9ccf595abc31942e5d14be784707e960c by llvmgnsyncbot
gn build: Merge ec4749e3b8d
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/Transforms/Utils/BUILD.gn
Commit 0d8929ce76dad4f9e1d19cb979c92bea10ec2747 by qshanz
[NFC][Test][PowerPC] Add the test to verify the mask with constant
The file was modifiedllvm/test/CodeGen/PowerPC/shift_mask.ll
Commit 97182013c4587e85d5ce3231e66fea41d58d4fa9 by maskray
[MC] Delete redundant alignment update from
MCELFStreamer::EmitCommonSymbol. NFC
EmitValueToAlignment() updates the maximum alignment.
The file was modifiedllvm/lib/MC/MCELFStreamer.cpp