- Oct 15, 2022
-
-
Krzysztof Parzyszek authored
This should fix ``` Pass modifies its input and doesn't report it: Hexagon Vector Combine Pass modifies its input and doesn't report it UNREACHABLE executed at [...hecks-debian/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1436! ```
-
Keith Smiley authored
This updates the `--function-starts` argument to now accept 3 different modes, `addrs` for just printing the addresses of the function starts (previous behavior), `names` for just printing the names of the function starts, and `both` to print them both side by side. In general if you're debugging function starts issues it's useful to see the symbol name alongside the address. This also mirrors Apple's `dyldinfo -function_starts` command which prints both. Differential Revision: https://reviews.llvm.org/D119050
-
Keith Smiley authored
This allows binaries containing the LC_DYLIB_CODE_SIGN_DRS to be objcopy'd and stripped. Differential Revision: https://reviews.llvm.org/D135988
-
Arthur Eubanks authored
In D134378, we'll need the clang AST to be able to construct the qualified in some cases. This makes logging in one place slightly less informative. Reviewed By: dblaikie, Michael137 Differential Revision: https://reviews.llvm.org/D135979
-
Krzysztof Parzyszek authored
Recognize Q.15*Q.15 and Q.31*Q.31, with and without rounding.
-
Brett Wilson authored
Read typedef and "using" type alias declarations and serialize into the internal structures. Emit this information in the YAML output. The HTML and MD generators are unchanged. Separate out the logic to create the parent namespace or record object and insert the newly created child into it. This logic was previously duplicated for every "info" type and is now shared. To help this, a struct containing the child vectors was separated out so children can be added generically and without having too many templates. A small change was made to populateParentNamespaces() to allow using types that aren't themselves DeclContexts (typedefs are the first example of this). Differential Revision: https://reviews.llvm.org/D134371
-
Philip Reames authored
-
Bill Wendling authored
The extension that allows for pointer arithmetic on 'void' types treats the 'void' as a 'char'. We should use the 'char' size in bits instead of 1 (the number of bytes) to allow warning when pointer arithmetic would go out of bounds. Differential Revision: https://reviews.llvm.org/D135989
-
Martin Storsjö authored
Whenever a call to __chkstk was made, the frame lowering previously omitted the aligning (as NumBytes was reset to zero before doing alignment). This fixes https://github.com/llvm/llvm-project/issues/56182. The initial version of this produced invalid code for small functions with no local stack allocations, if those functions were marked with the "stackrealign" attribute. If building with -mstack-alignment=16 (which otherwise mostly would be a no-op), this attribute is added on the main function. Differential Revision: https://reviews.llvm.org/D135687
-
Krzysztof Parzyszek authored
HexagonSubtarget::isTypeFixHVX would stop breaking the type up when it reached 64 bits in width. HVX vector predicates can be shorter than that, for example <32 x i1> would have a bitwidth of 32, and it's still a valid HVX type.
-
bixia1 authored
Rename conversion_sparse2dense.mlir and conversion_sparse2sparse.mlir to convert_sparse2dense.mlir/sparse2sparse.mlir. Add convert_dense2sparse.mlir. Move the sparse_tensor.convert operator tests out of conversion.mlir. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D135922
-
Daniel Rodríguez Troitiño authored
D121868 provided support for -darwin-target-variant-triple, but the support for -darwin-target-variant-sdk-version was still missing for cc1as. These changes build upon the previous and provides such support. - Extracted the common code to handle -darwin-target-variant-triple and -darwin-target-variant-sdk-version in the Darwin toolchain to a method that can be used for both the cc1 and the cc1as job construction. cc1as does not support some of the parameters that were provided to cc1, so the same code cannot be used for both. - Invoke that new common code when constructing a cc1as invocation. - Parse the new -darwin-target-variant-sdk-version in the cc1as driver. Apply its value to the MCObjectFileInfo to generate the right values in the object files. - Includes two new tests that check that cc1as uses the provided values in -darwin-target-variant-sdk and that the Clang driver creates the jobs with the correct arguments. Differential Revision: https://reviews.llvm.org/D135729
-
Alan Phipps authored
This small patch adds a '--skip-branches' option to the llvm-cov export options. This option allows branch coverage information to be skipped from the exported LCOV directives if it's not needed. For now, this only works when exporting LCOV (which is noted in the option description), but it can be extended for JSON later if it makes sense. Differential Revision: https://reviews.llvm.org/D135986
-
Krzysztof Parzyszek authored
HVX v62+ has bidirectional shifts, which do not mask the shift amount to the bit width. Instead, the shift amount is sign-extended from the log(BW) bit value, and a negative value causes a shift in the other direction. For the shift amount being -log(BW), this reversed shift will shift all bits out, inserting 0s or sign bits depending on the type and direction.
-
Florian Hahn authored
makeLoopInvariant may recursively move its operands to make them invariant, before moving the passed in instruction. Those recursively moved instructions are currently missed when invalidating block and loop dispositions. To address this, move the invalidation code to Loop::makeLoopInvariant. Fixes #58314. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D135909
-
Tyker authored
-
serge-sans-paille authored
Because of LLVM mangling escape sequence (through '\01' prefix), it is possible for a single symbols two have two different IR representations. For instance, consider @symbol and @"\01_symbol". On OSX, because of the system mangling rules, these two IR names point are converted in the same final symbol upon linkage. LTO doesn't model this behavior, which may result in symbols being incorrectly internalized (if all reference use the escaping sequence while the definition doesn't). The proper approach is probably to use the mangled name to compute GUID to avoid the dual representation, but we can also avoid discarding symbols that are bound to two different IR names. This is an approximation, but it's less intrusive on the codebase. Fix #57864 Differential Revision: https://reviews.llvm.org/D135710
-
Zain Jaffal authored
Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D134044
-
Kamau Bridgeman authored
This reverts commit cf9d7f55.
-
Kamau Bridgeman authored
This reverts commit 9c26f51f.
-
Kamau Bridgeman authored
This reverts commit fd7c7ad4.
-
Yitzhak Mandelbaum authored
Some compilers can't determine that all cases of the switch return (or are unreachable) and warn about control reaching end of non-void function. Explicitly mark with `llvm_unreachable`. Differential Revision: https://reviews.llvm.org/D135978
-
David Blaikie authored
Seems there's a narrow case - where a packed type doesn't pack its base subobjects (only fields), but when packing a field of the derived type, GCC does pack the resulting total object - effectively packing the base subobject. So ensure that this non-pod type (owing to it having a base class) that is packed, gets packed when placed in /another/ type that is also packed. This is a (smallish?) ABI fix to a regression introduced by D117616 - but that regression/ABI break hasn't been released in LLVM as-yet (it's been reverted on the release branch from the last two LLVM releases - I probably should've just reverted the whole patch while we hashed out this and other issues) so this change isn't itself an ABI break, as far as LLVM releases are concerned (for folks releasing their own copies of LLVM from ToT/without the LLVM release branch, and didn't opt into the clang-abi-compat 14 or below (soon to be 15 or below, I guess I should say) then this would be an ABI break against clang from the last 9 months or so) Differential Revision: https://reviews.llvm.org/D135916
-
Sterling Augustine authored
This reverts commit https://reviews.llvm.org/D135134 (b3f1d58a) That revision appears to have broken Arm memcpy in some subtle ways. Am communicating with the original author to get a good reproduction.
-
Filipp Zhinkin authored
Support SETCCCARRY lowering to SBCS instruction. Related issue: https://github.com/llvm/llvm-project/issues/44629 Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D135302
-
Jez Ng authored
{D116279}, in addition to adding support for other demanglers, also factored out some of the demangling logic. However, I don't think the abstraction really carries its weight -- after {D135942}, only the ELF and WASM backends call it with anything other than a non-constant `shouldDemangle` argument. The COFF and Mach-O backends were already doing the should-demangle check before calling `demangle()`. Reviewed By: MaskRay, #lld-macho Differential Revision: https://reviews.llvm.org/D135943 -
Jez Ng authored
The only thing that the Common implementation does is a check for `config->demangle`, but {D135189} added that check to `maybeDemangleSymbol`, so there's no need to go through `Common`... Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D135942 -
Peter Steinfeld authored
Several module files in .../llvm-project/flang/module check for the existence of the macro "__x86_64__" to conditionally compile Fortran code. Unfortunately, this macro was not being defined anywhere. This patch fixes that for compilations targeting 64 bit x86 machines. I made the following changes -- -- Removed the test for 32 bit X86 targets. The rest of the compiler and runtime do not support X86 32 bits. -- Added predefined macros to define "__x86_64__" and "__x86__64" to be 1 when the target architecture is 64 bit x86 and the "-cpp" option is on the command line. -- Changed the cmake file for creating the Fortran module files to use the "-cpp" option so that the macro "__x86_64__" will be defined when building the module files. -- Added a test. Differential Revision: https://reviews.llvm.org/D135810
-
Argyrios Kyrtzidis authored
`ProvenanceAnalysis::related()` was assuming that the order of parameters for `relatedCheck()` was not affecting the result but this was not the case when both parameters were `PHINode`s. Due to this assumption `ProvenanceAnalysis::related()` was ordering the parameters based on pointer value which resulted in non-deterministic behavior. To address this change `relatedPHI()` so that it gives the same result independent of the parameter order. rdar://100325456 Differential Revision: https://reviews.llvm.org/D135376
-
Nico Weber authored
-
Vy Nguyen authored
[lld-macho][nfc] define command UNWIND_MODE_MASK for convenience and rewrite mode-mask checking logic for clarity The previous form is currently "harmless" and happened to work but may not in the future: Consider the struct: (for x86-64, but same issue can be said for the ARM/64 families): ``` UNWIND_X86_64_MODE_MASK = 0x0F000000, UNWIND_X86_64_MODE_RBP_FRAME = 0x01000000, UNWIND_X86_64_MODE_STACK_IMMD = 0x02000000, UNWIND_X86_64_MODE_STACK_IND = 0x03000000, UNWIND_X86_64_MODE_DWARF = 0x04000000, ``` Previously, we were doing: `(encoding & MODE_DWARF) == MODE_DWARF` As soon as a new `UNWIND_X86_64_MODE_FOO = 0x05000000` is defined, then the check above would always return true for encoding=MODE_FOO (because `(0b0101 & 0b0100) == 0b0100` ) Differential Revision: https://reviews.llvm.org/D135359
-
Craig Topper authored
-
Krzysztof Parzyszek authored
This will allow using builders with different folders.
-
Benjamin Kramer authored
-
Nico Weber authored
-
Nico Weber authored
Found via for f in $(rg -l tablegen.gni llvm/utils/gn); do if ! rg -q 'tablegen\(' $f; then echo $f fi done after seeing it randomly in one of the files. -
Krzysztof Parzyszek authored
HVX v60 only has splats that take a 32-bit word as input, while v62+ has splats that take 8- or 16-bit value. This makes writing output patterns that need to use a splat annoying, because the entire output pattern needs to be replicated for various versions of HVX. To avoid this, the patterns will always use the pseudos, and then the pseudos will be handled using a post-ISel hook.
-
Quentin Colombet authored
This pattern will be useful to get cleaner code when lowering view like operations. Differential Revision: https://reviews.llvm.org/D135836
-