- Apr 14, 2021
-
-
Siva Chandra Reddy authored
It broke when FPBits was converted to a union.
-
Yonghong Song authored
Currently, for any extern variable, if it doesn't have section attribution, it will be put into a default ".extern" btf DataSec. The initial design is to put every extern variable in a DataSec so libbpf can use it. But later on, libbpf actually requires extern variables to put into special sections, e.g., ".kconfig", ".ksyms", etc. so they can be used properly based on section name. Andrii mentioned since ".extern" variables are not actually used, it makes sense to remove it from the compiler so libbpf does not need to deal with it, esp. for static linking. The BTF for these extern variables is still generated. With this patch, I tested kernel selftests/bpf and all tests passed. Indeed, removing ".extern" DataSec seems having no impact. Differential Revision: https://reviews.llvm.org/D100392
-
Matt Morehouse authored
SinkPtr was not correctly marked as volatile, causing the malloc to get optimized out. This was causing 20-minute timeouts for the test and no OOM.
-
Lang Hames authored
Fixes https://llvm.org/PR49906.
-
Nikita Popov authored
I've run into some cases where a large fraction of compile-time is spent invalidating SCEV. One of the causes is forgetLoop(), which walks all values that are def-use reachable from the loop header phis. When invalidating a topmost loop, that might be close to all values in a function. Additionally, it's fairly common for there to not actually be anything to invalidate, but we'll still be performing this walk again and again. My first thought was that we don't need to continue walking the uses if the current value doesn't have a SCEV expression. However, this isn't quite right, because SCEV construction can skip over values (e.g. for a chain of adds, we might only create a SCEV expression for the final value). What this patch does instead is to only walk the (full) def-use chain of loop phis that have a SCEV expression. If there's no expression for a phi, then we also don't have any dependent expressions to invalidate. Differential Revision: https://reviews.llvm.org/D100264
-
ThePhD authored
Adds the __clang_literal_encoding__ and __clang_wide_literal_encoding__ predefined macros to expose the encoding used for string literals to the preprocessor.
-
Craig Topper authored
[RISCV] Rename RISCVISD::GREVI(W)/GORCI(W) to RISCVISD::GREV(W)/GORC(W). Don't require second operand to be a constant. Prep work for adding intrinsics for these instructions in the future.
-
Jessica Paquette authored
G_CTPOP can be directly selected to CNT in these cases. Differential Revision: https://reviews.llvm.org/D100349
-
Arnamoy Bhattacharyya authored
[flang][OpenMP] Modify semantic check for nesting of `ordered` regions to include `close` nesting check. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D100222
-
Alina Sbirlea authored
-
Peter Steinfeld authored
We were not instantiating procedure pointer components. If the instantiation contained errors, we were not reporting them. This resulted in internal errors in later processing. I fixed this by adding code in .../lib/Semantics/type.cpp in InstantiateComponent() to handle a component with ProcEntityDetails. I also added several tests for various good and bad instantiations of procedure pointer components. Differential Revision: https://reviews.llvm.org/D100341
-
Matt Morehouse authored
We need to unpoison parameters before calling into MSan-instrumented user-defined mutators. Addresses https://github.com/google/oss-fuzz/issues/4605. Reviewed By: metzman Differential Revision: https://reviews.llvm.org/D100355
-
Jonas Devlieghere authored
Address Shafik Yaghmour's post commit code review feedback.
-
Philip Reames authored
Given this is checking attributes, there are a bunch of valid ways that O2 can infer attributes that CSE will not.
-
Shilei Tian authored
https://lists.llvm.org/pipermail/openmp-dev/2021-March/003940.html reports test failure in `openmp-offload-gpu.c`. The failure is, when using `-S` in the clang driver, it still reports bitcode library doesn't exist. However, it is not exposed in my local run and Phabiractor test. The reason it escaped from Phabricator test is, the test machine doesn't have CUDA, so `LibDeviceFile` is empty. In this case, the check of `OPT_S` will be hit, and we get "expected" result. However, if the test machine has CUDA, `LibDeviceFile` will not be empty, then the check will not be done, and it just proceeds, trying to add the bitcode library. The reason it escaped from my local run is, I didn't build ALL targets, so this case was marked UNSUPPORTED. Reviewed By: kkwli0 Differential Revision: https://reviews.llvm.org/D98902
-
Michał Górny authored
Introduce new m_current_process and m_continue_process variables that keep the pointers to currently selected process. At this moment, this is equivalent to m_debugged_process_up but it lays foundations for the future multiprocess support. Differential Revision: https://reviews.llvm.org/D100256
-
Jonas Devlieghere authored
Caught by ubsan (__ubsan_handle_load_invalid_value_abort) when running the unit tests.
-
Mircea Trofin authored
This allows one to cross-compile the header/object for a model in a setup where the compiler is built on a system that cannot host the AOT compiler. For example, if arm-hostable clang is desired, while the AOT Tensorflow compiler can cross-compile to arm, it can't currently run on arm. The only alternative in that scenario would be to cross-compile clang itself, but that gets complicated when trying to run tests after that. Differential Revision: https://reviews.llvm.org/D99992
-
Simon Pilgrim authored
[X86][SSE] combineSetCCMOVMSK - allow comparison with upper (known zero) bits in CMP(MOVMSK(PACKSS())) -> CMP(MOVMSK()) fold We already allow the comparison of the upper bits of 'IsAllOf' (allbits) patterns, but we can safely compare the known zero bits for 'IsAnyOf' (zerobits) patterns as well. This fixes an issues where we are comparing a type wide than the number of vector elements, which avoids a regression mentioned in rGbaadbe04.
-
Aaron Ballman authored
These proposals make the same changes to both C++ and C and remove a restriction on standard attributes appearing multiple times in the same attribute list. We could warn on the duplicate attributes, but do not. This is for consistency as we do not warn on attributes duplicated within the attribute specifier sequence. If we want to warn on duplicated standard attributes, we should do so both for both situations: [[foo, foo]] and [[foo]][[foo]].
-
Siva Chandra Reddy authored
This helps us avoid the uncomfortable reinterpret-casts. Avoiding the reinterpret casts prevents us from tripping the sanitizers as well. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D100360
-
Evgeny Leviant authored
-
Anirudh Prasad authored
- In the SystemZAsmParser, there will be a few queries to the type of dialect it is (AD_ATT, AD_HLASM) in future patches. - It would be nice to have two small helper functions `isParsingATT()` and `isParsingHLASM()` - Putting this as a separate smaller patch allows us to remove its definitions from other dependent patches. Reviewed By: uweigand, abhina.sreeskantharajan Differential Revision: https://reviews.llvm.org/D99891
-
Evgeny Leviant authored
Differential revision: https://reviews.llvm.org/D69428
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
- Apr 13, 2021
-
-
Jesse Zhang authored
The existing code causes an infinite recursion. This is likely an oversight of commit c0e5e3fb [1] where the intent must have been to call the non-const overload. [1] https://reviews.llvm.org/D87278 Reviewed By: gribozavr2 Differential Revision: https://reviews.llvm.org/D100347
-
Joseph Huber authored
Summary: After D98740 the function attributes were changes to append rather than overwrite when using the values defined in OMPKinds.def. One of the OpenMPIRBuilder tests erroenously used `readnone` instead of `readonly` which would cause a conflict and result in a broken module once `readonly` was appended to it. This patch fixes the test to use the correct attributes.
-
Denys Petrov authored
[analyzer] [NFC] Eliminate dispatchCast, evalCastFromNonLoc and evalCastFromLoc functions from SValBuilder Summary: Remove dispatchCast, evalCastFromNonLoc and evalCastFromLoc functions since their functionality has been moved to common evalCast function. Use evalCast instead. Post-clean up patch for https://reviews.llvm.org/D96090 patch. The patch shall not change any behavior. Differential Revision: https://reviews.llvm.org/D97277
-
Jez Ng authored
This should fix the assert that's currently breaking the build.
-
Yonghong Song authored
For a global weak symbol defined as below: char g __attribute__((weak)) = 2; LLVM generates an allocated global with WeakAnyLinkage, for which BPF backend generates proper BTF info. For the above example, if a modifier "const" is added like const char g __attribute__((weak)) = 2; LLVM generates an allocated global with WeakODRLinkage, for which BPF backend didn't generate any BTF as it didn't handle WeakODRLinkage. This patch addes support for WeakODRLinkage and proper BTF info can be generated for weak symbol defined with "const" modifier. Differential Revision: https://reviews.llvm.org/D100362
-
Kadir Cetinkaya authored
Differential Revision: https://reviews.llvm.org/D98505
-
Kadir Cetinkaya authored
These can be invoked at different stages while building an AST to let FeatureModules implement features on top of it. The patch also introduces a sawDiagnostic hook, which can mutate the final clangd::Diag while reading a clang::Diagnostic. Differential Revision: https://reviews.llvm.org/D98499
-
Kadir Cetinkaya authored
First patch to enable diagnostic fix generation through modules. The workflow will look like: - ASTWorker letting modules know about diagnostics while building AST, modules can read clang::Diagnostic and mutate clangd::Diagnostic through that hook. - Modules can implement and expose tweaks to fix diagnostics or act as general refactorings. - Tweak::Selection will contain information about the diagnostic associated with the codeAction request to enable modules to fail their diagnostic fixing tweakson prepare if need be. Differential Revision: https://reviews.llvm.org/D98498
-
Emilio Cota authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D99818
-
Kostya Kortchinsky authored
Update the Scudo document to align with the standalone version. Add some more verbiage about the various component of the allocator, rework a bit everything. The build instructions have been updated. The options and their default values have been updated, and the `mallopt` ones have been added. Differential Revision: https://reviews.llvm.org/D100230
-
Marek Kurdej authored
Commit rGa17b1aed added `bool contains(const key_type& x) const;` methods to associative containers, but didn't add `template<class K> bool contains(const K& x) const;` for heterogenous lookup. Reviewed By: #libc, Quuxplusone, ldionne Differential Revision: https://reviews.llvm.org/D100369
-
Anirudh Prasad authored
- Currently, MCAsmInfo provides a CommentString attribute, that various targets can set, so that the AsmLexer can appropriately lex a string as a comment based on the set value of the attribute. - However, AsmLexer also supports a few additional comment syntaxes, in addition to what's specified as a CommentString attribute. This includes regular C-style block comments (/* ... */), regular C-style line comments (// .... ) and #. While I'm not sure as to why this behaviour exists, I am assuming it does to maintain backward compatibility with GNU AS (see https://sourceware.org/binutils/docs/as/Comments.html#Comments for reference) For example: Consider a target which sets the CommentString attribute to '*'. The following strings are all lexed as comments. ``` "# abc" -> comment "// abc" -> comment "/* abc */ -> comment "* abc" -> comment ``` - In HLASM however, only "*" is accepted as a comment string, and nothing else. - To achieve this, an additional attribute (`AllowAdditionalComments`) has been added to MCAsmInfo. If this attribute is set to false, then only the string specified by the CommentString attribute is used as a possible comment string to be lexed by the AsmLexer. The regular C-style block comments, line comments and "#" are disabled. As a final note, "#" will still be treated as a comment, if the CommentString attribute is set to "#". Depends on https://reviews.llvm.org/D99277 Reviewed By: abhina.sreeskantharajan, myiwanch Differential Revision: https://reviews.llvm.org/D99286
-
Pavel Labath authored
These two functions are doing the same thing, only one of them is sending the packets immediately and the other "queues" them to be sent later. The first one is better as in case of errors, the backtrace will point straight to the place that caused them. Modify the first method to avoid duplication, and ten standardize on it.
-