- Jan 27, 2022
-
-
jonmeow authored
The underlying issue here is that line 125 checks if linkopts was assigned (by line 120) but it's not initialized, so that becomes a crash. This was noticed by someone trying to use Docker, so no terminfo library installed. Reviewed By: GMNGeoffrey Differential Revision: https://reviews.llvm.org/D118270
-
Adrian Prantl authored
A shift-left > 63 triggers a UBSAN failure. This patch kicks the can down the road (to the consumer) by emitting a more compact representation of the shift computation in DWARF expressions. Differential Revision: https://reviews.llvm.org/D118183
-
Matt Arsenault authored
We were emitting these in the object file but not printing them.
-
Arthur Eubanks authored
This mitigates the extra memory caused by D115725. On 32-bit arches where we only have 2 bits per PointerIntPair we fall back to simply storing alignment separately. Reviewed By: rnk, nikic Differential Revision: https://reviews.llvm.org/D117262
-
Arthur Eubanks authored
Reviewed By: hans Differential Revision: https://reviews.llvm.org/D118206
-
Arthur Eubanks authored
D117916 broke some people because some distros are still using a glibc older than 2.33. Add gn arg llvm_have_mallinfo2 and default to false for now. Differential Revision: https://reviews.llvm.org/D118269
-
Fangrui Song authored
And avoiding changing `size` in `writeTo`.
-
Arthur Eubanks authored
-
Jay Foad authored
-
Adrian Kuegel authored
-
Yitzhak Mandelbaum authored
These built-in functions build the (sophisticated) model of the code's memory. This model isn't used by all analyses, so we provide for disabling it to avoid incurring the costs associated with its construction. Differential Revision: https://reviews.llvm.org/D118178
-
Kirill Bobyrev authored
Using both `raw_ostream::flush()` and `raw_ostream::str()` consecutively is redundant. The alternatives are: - Use `raw_ostream::str()` without `raw_ostream::flush()` - Use `raw_ostream::flush()` and then use the destination for `raw_ostream` writer The latter is more idiomatic, so the fix resolves this particular case in its favor. Reviewed By: kadircet Differential Revision: https://reviews.llvm.org/D118247
-
Jonas Devlieghere authored
Remove ConstString::StaticMemorySize as it is unused and superseded by GetMemoryStats. It is referenced in a bunch of doc comments but I don't really understand why. My best guess it that the comments were copy-pasted from ConstString::MemorySize() even though it didn't make sense there either. The implementation of StaticMemorySize was being called on the MemoryPool, not on the ConstString itself. Differential revision: https://reviews.llvm.org/D118091
-
Chih-Ping Chen authored
DIStringType is used to encode the debug info of a character object in Fortran. A Fortran deferred-length character object is typically implemented as a pair of the following two pieces of info: An address of the raw storage of the characters, and the length of the object. The stringLocationExp field contains the DIExpression to get to the raw storage. This patch also enables the emission of DW_AT_data_location attribute in a DW_TAG_string_type debug info entry based on stringLocationExp in DIStringType. A test is also added to ensure that the bitcode reader is backward compatible with the old DIStringType format. Differential Revision: https://reviews.llvm.org/D117586
-
Konstantina authored
Reviewed By: critson Differential Revision: https://reviews.llvm.org/D118096
-
Qiu Chaofan authored
This method introduces new CMake variable PPC_LINUX_DEFAULT_IEEELONGDOUBLE (false by default) to enable fp128 as default long double format. Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D118110
-
Stanislav Mekhanoshin authored
Since RegBankReassign pass was removed this feature is not use for anything. Differential Revision: https://reviews.llvm.org/D118195
-
Alex Tsao authored
Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D118219
-
Florian Hahn authored
-
Pavel Labath authored
These were probably not picked up before because they only run when logging is enabled.
-
- Jan 26, 2022
-
-
Benjamin Kramer authored
This reverts commit ef820632. - It conflicts with the existing llvm::size in STLExtras, which will now never be called. - Calling it without llvm:: breaks C++17 compat
-
serge-sans-paille authored
-
Stanislav Gatev authored
This is part of the implementation of the dataflow analysis framework. See "[RFC] A dataflow analysis framework for Clang AST" on cfe-dev. Reviewed-by: xazax.hun Differential Revision: https://reviews.llvm.org/D118236
-
dongAxis authored
Summary: This is the first path to support more relocation types on aarch64. The patch just uses the isInt<N> to replace fitsRangeSignedInt. Test Plan: check-all Differential Revision: https://reviews.llvm.org/D118231
-
Sanjay Patel authored
The loop below the changed line assumes that the element width of the target constant is the same as the element width of the loaded value, but that is not always true. We could try harder to do some kind of min/max calc even if the sizes don't match, but that can be another patch if needed. This fixes #53401 (miscompile) and does not change the motivating cases added when this analysis was introduced: ad298f86
-
Sanjay Patel authored
-
serge-sans-paille authored
As a conquence move llvm::array_lengthof from STLExtras.h to STLForwardCompat.h (which is included by STLExtras.h so no build breakage expected).
-
Simon Pilgrim authored
Helps determine if the subvector ops come from the same larger vector and match the lower/upper extractions
-
Nikita Popov authored
Rather than checking for i8*, simply add a bitcast to i8*, so the appendString() code sees the expected type.
-
Marek Kurdej authored
Fixes https://github.com/llvm/llvm-project/issues/53405. Reviewed By: MyDeveloperDay, owenpan Differential Revision: https://reviews.llvm.org/D118220
-
Kadir Cetinkaya authored
We are already building into the final result, no need to append it again. Fixes https://github.com/clangd/vscode-clangd/issues/290. Differential Revision: https://reviews.llvm.org/D118245
-
Matthias Springer authored
This is for compatibility with existing bufferization passes. Also clean up memref type generation a bit. Differential Revision: https://reviews.llvm.org/D118243
-
Marek Kurdej authored
[Visualizers] Fix SmallVector<T> visualizer for T inside an anonymous namespace. Use `value_type` instead of `$T1`. At least on MSVC 2022, using $T1 does not work. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D118105
-
Nemanja Ivanovic authored
In commit 1674d9b6, I fixed the bug where we didn't consider both words of the result of the comparison. However, the logic needs to be different for eq and ne. Namely for eq, we need both words of the doubleword to equal so it is an AND. OTOH for ne, we need either word to be unequal so it is an OR.
-
Christian Sigg authored
-
Jan Svoboda authored
This patch replaces the exact include count of each file in `HeaderFileInfo` with a set of included files in `Preprocessor`. The number of includes isn't a property of a header file but rather a preprocessor state. The exact number of includes is not used anywhere except statistic tracking. Reviewed By: vsapsai Differential Revision: https://reviews.llvm.org/D114095
-
Sam McCall authored
Underscore-uglified identifiers are used in standard library implementations to guard against collisions with macros, and they hurt readability considerably. (Consider `push_back(Tp_ &&__value)` vs `push_back(Tp value)`. When we're describing an interface, the exact names of parameters are not critical so we can drop these prefixes. This patch adds a new PrintingPolicy flag that can applies this stripping when recursively printing pieces of AST. We set it in code completion/signature help, and in clangd's hover display. All three features also do a bit of manual poking at names, so fix up those too. Fixes https://github.com/clangd/clangd/issues/736 Differential Revision: https://reviews.llvm.org/D116387
-
Nikita Popov authored
AMDGPUHSAMetadataStreamer currently assumes that pointer arguments without align attribute have ABI alignment of the pointee type. This is incompatible with opaque pointers, but also plain incorrect: Pointer arguments without explicit alignment have alignment 1. It is the responsibility of the frontent to add correct align annotations. Differential Revision: https://reviews.llvm.org/D118229
-
David Spickett authored
This adds an option --show-tags to "memory read". (lldb) memory read mte_buf mte_buf+32 -f "x" -s8 --show-tags 0x900fffff7ff8000: 0x0000000000000000 0x0000000000000000 (tag: 0x0) 0x900fffff7ff8010: 0x0000000000000000 0x0000000000000000 (tag: 0x1) Tags are printed on the end of each line, if that line has any tags associated with it. Meaning that untagged memory output is unchanged. Tags are printed based on the granule(s) of memory that a line covers. So you may have lines with 1 tag, with many tags, no tags or partially tagged lines. In the case of partially tagged lines, untagged granules will show "<no tag>" so that the ordering is obvious. For example, a line that covers 2 granules where the first is not tagged: (lldb) memory read mte_buf-16 mte_buf+16 -l32 -f"x" --show-tags 0x900fffff7ff7ff0: 0x00000000 <...> (tags: <no tag> 0x0) Untagged lines will just not have the "(tags: ..." at all. Though they may be part of a larger output that does have some tagged lines. To do this I've extended DumpDataExtractor to also print memory tags where it has a valid execution context and is asked to print them. There are no special alignment requirements, simply use "memory read" as usual. All alignment is handled in DumpDataExtractor. We use MakeTaggedRanges to find all the tagged memory in the current dump, then read all that into a MemoryTagMap. The tag map is populated once in DumpDataExtractor and re-used for each subsequently printed line (or recursive call of DumpDataExtractor, which some formats do). Reviewed By: omjavaid Differential Revision: https://reviews.llvm.org/D107140
-
Nikita Popov authored
We could keep the non-i8 GEP code for non-opaque pointers, but there's two reasons I'm dropping it: First, this actually appears to be dead code, at least it isn't hit in any of our tests. I expect that this is because we usually expand trip counts, and those are never pointers (anymore). Second, the non-i8 GEP was actually incorrect in multiple ways, because it used SCEV type sizes, which don't match DL type sizes (for pointers) and certainly don't match type alloc sizes (which is what GEPs actually use). As such, I'm simplifying the code to always use the i8 GEP code path if it does get hit.
-