- Aug 11, 2022
-
-
Michael Jones authored
Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D131610
-
Louis Dionne authored
-
Evgenii Stepanov authored
Use of uninitialized memory. https://lab.llvm.org/buildbot/#/builders/74/builds/12713 This reverts commit 8a4c40bf.
-
Evgenii Stepanov authored
https://lab.llvm.org/buildbot/#/builders/74/builds/12713 This reverts commit 000c8fef.
-
Evgenii Stepanov authored
https://lab.llvm.org/buildbot/#/builders/74/builds/12713 This reverts commit 43b298ea.
-
Johannes Doerfert authored
If we collect potential values we need to visit a value even if we have seen it before if the scope is different. The scope is part of the result after all. Test included. Fixes https://github.com/llvm/llvm-project/issues/56753 Differential Revision: https://reviews.llvm.org/D131597
-
Nico Weber authored
Like D131405, but for ELF. No behavior change. Differential Revision: https://reviews.llvm.org/D131612
-
Naje George authored
Reviewed By: ktras Differential Revision: https://reviews.llvm.org/D131211
-
Martin Sebor authored
Replace a switch statement used to validate arguments to known library functions with a more consistent table-driven approach and tighten it up.
-
Michael Jones authored
Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D131611
-
Martin Storsjö authored
When clang includes a PCH, it tolerates some amount of differences between the defines used when creating and when including the PCH - this seems to be intentionally allowed in c379c072 (and later extended in b6368751). When using a PCH (or when picking a PCH out of a directory containing multiple candidates) Clang used to accept the header if there were defines on the command line when creating the PCH that are missing when using the PCH, or vice versa, defines only set when using the PCH. The only cases where Clang explicitly rejected the use of a PCH is if there was an explicit conflict between the options, e.g. -DFOO=1 vs -DFOO=2, or -DFOO vs -UFOO. The latter commit added a FIXME that we really should check whether mismatched defines actually were used somewhere in the PCH, so that the define would affect the outcome. This FIXME has stood unaddressed since 2012. This differs from GCC, which rejects PCH files if the defines differ at all. When explicitly including a single PCH file, the relaxed policy of allowing minor differences is harmless for correct use cases (but may fail to diagnose mismtaches), and potentially allow using PCHs in wider cases (where the user intentionally know that the differences in defines are harmless for the PCH). However, for GCC style PCH directories, with a directory containing multiple PCH variants and the compiler should pick the correct match out of them, Clang's relaxed logic was problematic. The directory could contain two otherwise identical PCHs, but one built with -DFOO and one without. When attempting to include a PCH and iterating over the candidates in the directory, Clang would essentially pick the first one out of the two, even if there existed a better, exact match in the directory. Keep the relaxed checking when specificlly including one named PCH file, but require strict matches when trying to pick the right candidate out of a GCC style directory with alternatives. This fixes https://github.com/lhmouse/mcfgthread/issues/63. Differential Revision: https://reviews.llvm.org/D126676
-
Jeff Niu authored
-
Sanjay Patel authored
As discussed in the post-commit feedback for b53d44fe, this test was failing on AIX because atan(-0.0) results in 0.0 (positive). Differential Revision: https://reviews.llvm.org/D131601
-
Jan Svoboda authored
Since D129389 (and downstream PR https://github.com/apple/llvm-project/pull/4965), the dependency scanner is responsible for generating full command-lines, including the modules paths. This patch removes the flag that was making this an opt-in behavior in clang-scan-deps. Reviewed By: benlangmuir Differential Revision: https://reviews.llvm.org/D131420
-
Adrian Vogelsgesang authored
So far, the `thread::id` comparators were implemented as hidden friends. This was non-conforming and lead to incorrectly rejected C++ code, as can be seen in the linked Github issue. Fixes https://github.com/llvm/llvm-project/issues/56187 Differential Revision: https://reviews.llvm.org/D131430
-
Evgenii Stepanov authored
Breaks ASan tests. This reverts commit 3f8ae7ef.
-
Michael Jones authored
The default IntegerToString class only supports base 10, this patch adds a version which supports any base between 2 and 36 inclusive. This will be used in an upcoming patch. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D131301
-
Michael Jones authored
Previously, the integer_to_string tests used EXPECT_TRUE(.equals) which doesn't have useful error messages. Now they properly check equality with the EXPECT_EQ macro, which allows for comparing the strings more naturally. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D131300
-
Shafik Yaghmour authored
[Clang] Restrict non fixed enum to a value outside the range of the enumeration values warning to context requiring a constant expression In D131307 we allowed the diagnostic to be turned into a warning for a transition period. This had the side effect of triggering the warning in contexts not required to be constant expression. This change will restrict the diagnostic to constant expression contexts. This should reduce the fallout of this diagnostic. Differential Revision: https://reviews.llvm.org/D131528
-
Aaron Ballman authored
Implicitly converting between incompatible function pointers in C is currently a default-on warning (it is an error in C++). However, this is very poor security posture. A mismatch in parameters or return types, or a mismatch in calling conventions, etc can lead to exploitable security vulnerabilities. Rather than allow this unsafe practice with a warning, this patch strengthens the warning to be an error (while still allowing users the ability to disable the error or the warning entirely to ease migration). Users should either ensure the signatures are correctly compatible or they should use an explicit cast if they believe that's more reasonable. Differential Revision: https://reviews.llvm.org/D131351
-
Eric Astor authored
Since we don't yet implement PROC's PROLOGUE and EPILOGUE support, we can safely ignore the option that disables them. Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D131524
-
Yuanfang Chen authored
It was not const due to the way it is initialized. This is needed for a following patch.
-
Sam Estep authored
This patch modifies `Environment`'s `pushCall` method to pass over arguments that are missing storage locations, instead of crashing. Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D131600
-
jackalcooper authored
Made passes converting ops from other dialects to spirv OperationPass, so that downstream compiler could put them in a proper nested pass manager to lower device code only. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D131591
-
Ofek Shilon authored
Following https://reviews.llvm.org/D92493, this add docs for the hot and cold function attributes. Differential Revision: https://reviews.llvm.org/D130933
-
Mark de Wever authored
While implementing `operator<=>` for `string_view` (D130295) @philnik pointed out `common_type` should be `type_identity`. Since it was an existing issue that wasn't addressed. This addresses the issue for both the new and existing equality and comparison operators. The test is based on the example posted in D130295. Reviewed By: philnik, #libc, huixie90 Differential Revision: https://reviews.llvm.org/D131322
-
Venkata Ramanaiah Nalamothu authored
All the prologue instructions should have unknown source location co-ordinates while the epilogue instructions should have source location of last non-debug instruction after which epilogue instructions are insrted. This ensures the prologue/epilogue markers are generated correctly in the line table. Changes are brought in from the downstream CFI patches. Reviewed By: scott.linder Differential Revision: https://reviews.llvm.org/D131485
-
Ilya Biryukov authored
The C++ Standard requires a complete type T when using any members of `vector<T>`, see https://eel.is/c++draft/vector#overview-4. This only breaks with latest libc++ in C++20 mode and does not show up in common configurations. We have an internal experimental configuration that discovered this. Reviewed By: alexfh Differential Revision: https://reviews.llvm.org/D131595
-
Slava Zakharin authored
The operation computes pow(b, p), where 'b' and 'p' are signed integers of the same width. The result's type matches the operands' type. Differential Revision: https://reviews.llvm.org/D129809
-
Mark de Wever authored
In D130295 @mumbleskates wondered why `std::strong_ordering::equal` had special code since it's the same as `std::strong_ordering::equivalent`. This is indeed the case so the special case can be removed. Reviewed By: mumbleskates, #libc, avogelsgesang, ldionne Differential Revision: https://reviews.llvm.org/D131419
-
Kazu Hirata authored
This patch fixes: llvm/lib/MC/MCParser/COFFMasmParser.cpp:333:28: error: comparison of integers of different signs: 'unsigned int' and 'int' [-Werror,-Wsign-compare]
-
Simon Pilgrim authored
DOS really doesn't like `` quotes to be used in command lines Some prep work as I'm intending to resurrect D79483 soon
-
Denys Petrov authored
Summary: Cover `ConstraintAssignor::assign(EquivalenceClass, RangeSet)` function with more regression tests. Differential Revision: https://reviews.llvm.org/D131514
-
Jeff Niu authored
This patch "modernizes" the LLVM `insertvalue` and `extractvalue` operations to use DenseI64ArrayAttr, since they only require an array of indices and previously there was confusion about whether to use i32 or i64 arrays, and to use assembly format. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D131537
-
Slava Zakharin authored
I would like to add DOT_PRODUCT support in this pass, so this restructuring is the first step to allow some code reuse inside getOrCreateFunction(). Differential Revision: https://reviews.llvm.org/D131530
-
Simon Pilgrim authored
Everything now uses TTI costs calls directly
-
Manoj Gupta authored
Refactor baremetal driver code to reduce the bespoke additions and base class overrides. This lets us use the per target runtimes like other clang targets. E.g. clang -target armv7m-cros-none-eabi will now be able to use the runtimes installed at <resource_dir>/lib/armv7m-cros-none-eabi instead of the hardcoded path <resource_dir>/lib/baremetal. The older code paths should still continue to work as before if <resource_dir>/lib/<tuple> does not exist. Reviewed By: MaskRay, barannikov88 Differential Revision: https://reviews.llvm.org/D131225
-
Kevin Athey authored
This is done by calling __msan_set_alloca_origin and providing the location of the variable by using the call stack. This is prepatory work for dropping variable names when track-origins is enabled. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D131205
-
- Aug 10, 2022
-
-
Eric Astor authored
Add support for many parameters to the SEGMENT directive Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D131523
-
Alexander Belyaev authored
-