- Jan 21, 2022
-
-
Stanislav Mekhanoshin authored
Compares, v_cndmask_b32, and v_readfirstlane_b32 use EXEC in a way which modifies the result. This implicit EXEC use shall not be ignored for the purposes of instruction moves. Differential Revision: https://reviews.llvm.org/D117814
-
Philip Reames authored
-
Adrian Prantl authored
This patch works around what looks like a bug in Clang itself. The error on the bot is: https://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/40466/consoleText In module 'LLVM_Utils' imported from /Users/buildslave/jenkins/workspace/lldb-cmake/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/lldb-python.h:18: /Users/buildslave/jenkins/workspace/lldb-cmake/llvm-project/llvm/include/llvm/Support/Error.h:720:3: error: 'llvm::Expected<bool>::(anonymous)' from module 'LLVM_Utils.Support.Error' is not present in definition of 'llvm::Expected<bool>' in module 'LLVM_Utils.Support.Error' union { ^ /Users/buildslave/jenkins/workspace/lldb-cmake/llvm-project/llvm/include/llvm/Support/Error.h:720:3: note: declaration of '' does not match /Users/buildslave/jenkins/workspace/lldb-cmake/llvm-project/llvm/include/llvm/Support/Error.h:720:3: note: declaration of '' does not match 1 error generated. The intention is to revert this as soon as a proper fix has been identified! rdar://87845391
-
John Ericson authored
We previously had a few varied definitions of this floating around. I made the one installed with LLVM handle all the cases, and then made the others use it. This issue was reported to me in https://reviews.llvm.org/D116521#3248117 as D116521 made clang and llvm use the common cmake utils. Reviewed By: sebastian-ne, phosek, #libunwind, #libc, #libc_abi, ldionne Differential Revision: https://reviews.llvm.org/D117537
-
John Ericson authored
This gives us the option of using CMake modules from LLVM, and other things. We will use that to deduplicate code later. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D117815
-
Tue Ly authored
Add to log2f 2 more exceptional cases got when not using fma for polyeval. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D117812
-
River Riddle authored
Interfaces in Interfaces/ should not depend on any dialects, and this include is unnecessary anyways.
-
Philip Reames authored
-
Sanjay Patel authored
We already have the related folds for zext-of-bool, so it should make things more consistent to have this transform to select for sext-of-bool too: https://alive2.llvm.org/ce/z/YikdfA Fixes #53319
-
Sanjay Patel authored
-
Craig Topper authored
No instructions should be using these. Everything should use HasVInstructions* Predicates. Remove them so that they can't be used by accident.
-
Krzysztof Drewniak authored
- Set the DEBUG_TYPE of SerializeToBlob to serialize-to-blob - Add debug output to print the assembly or PTX for GPU modules before they are assembled and linked Note that, as SerializeToBlob is a superclass of SerializeToCubin and SerializeToHsaco, --debug-only=serialize-to-blom will dump the intermediate compiler result for both of these passes. In addition, if LLVM options such as --stop-after are used to control the GPU kernel compilation process, the debug output will contain the appropriate intermediate IR. Reviewed By: herhut Differential Revision: https://reviews.llvm.org/D117519
-
Philip Reames authored
-
Craig Topper authored
This string no longer appears in the Vector Extension specification. The segment load/store instructions are just part of the vector instruction set. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D117724
-
Mogball authored
PDLDialect being a somewhat user-facing dialect and whose ops contain exclusively other PDL ops in their regions can take advantage of `OpAsmOpInterface` to provide nicer IR. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117828
-
Mogball authored
Unbound OperationOp in the matcher (i.e. one with no uses) is already disallowed by the verifier. However, an OperationOp in the rewriter is not side-effect free -- it's creating an op! Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117825
-
Mogball authored
Querying or building constraints on types, operands, results, and attributes are side-effect free in both the matcher and rewriter. The ops should be marked as such. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D117826
-
Casey Carter authored
... after LWG-3549. Differential Revision: https://reviews.llvm.org/D117608
-
Roger Kim authored
As per [Bug 50689](https://bugs.llvm.org/show_bug.cgi?id=50689), ``` 2. getSectionSyms() puts all the symbols into a map of section -> symbols, but this seems unnecessary. This was likely copied from the ELF port, which prints a section header before the list of symbols it contains. But the Mach-O map file doesn't print these headers. ``` This diff removes `getSectionSyms()` and keeps all symbols in a flat vector. What does ld64's mapfile look like? ``` $ llvm-mc -filetype=obj -triple=x86_64-apple-darwin test.s -o test.o $ llvm-mc -filetype=obj -triple=x86_64-apple-darwin foo.s -o foo.o $ ld -map map test.o foo.o -o out -L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -lSystem ``` ``` [ 0] linker synthesized [ 1] test.o [ 2] foo.o 0x100003FB7 0x00000001 __TEXT __text 0x100003FB8 0x00000000 __TEXT obj 0x100003FB8 0x00000048 __TEXT __unwind_info 0x100004000 0x00000001 __DATA __common 0x100003FB7 0x00000001 [ 1] _main 0x100003FB8 0x00000000 [ 2] _foo 0x100003FB8 0x00000048 [ 0] compact unwind info 0x100004000 0x00000001 [ 1] _number ``` Perf numbers when linking chromium framework on a 16-Core Intel Xeon W Mac Pro: ``` base diff difference (95% CI) sys_time 1.406 ± 0.020 1.388 ± 0.019 [ -1.9% .. -0.6%] user_time 5.557 ± 0.023 5.914 ± 0.020 [ +6.2% .. +6.6%] wall_time 4.455 ± 0.041 4.436 ± 0.035 [ -0.8% .. -0.0%] samples 35 35 ``` Reviewed By: #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D114735
-
Marek Kurdej authored
This factors out a pattern that comes up from time to time. Reviewed By: MyDeveloperDay, HazardyKnusperkeks, owenpan Differential Revision: https://reviews.llvm.org/D117769
-
Philip Reames authored
-
LLVM GN Syncbot authored
-
LLVM GN Syncbot authored
-
Nico Weber authored
-
Nico Weber authored
-
Tue Ly authored
The floating point tricks used to get rounding mode require -frounding-math flag, which behaves differently on aarch64. Reverting back to use get_round instead. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D117824
-
Alexandre Ganea authored
Move all variables at file-scope or function-static-scope into a hosting structure (lld::CommonLinkerContext) that lives at lldMain()-scope. Drivers will inherit from this structure and add their own global state, in the same way as for the existing COFFLinkerContext. See discussion in https://lists.llvm.org/pipermail/llvm-dev/2021-June/151184.html The previous land f860fe36 caused issues in https://lab.llvm.org/buildbot/#/builders/123/builds/8383, fixed by 22ee510d. Differential Revision: https://reviews.llvm.org/D108850
-
Pavel Labath authored
This enables power-users to annotate lldb api functions with arbitrary attributes. The motivation for this is being able to build liblldb as a static library on windows (see discussion on D117564). This should not be interpreted to mean that building liblldb is supported in any way, but this does not cause any problems for us, and can help users who really know what they are doing (or have no other choice).
-
Casey Carter authored
It was not in P0355R7, nor has it ever been so in a working draft. Drive-by: * tests should test something: fix loop bounds so initial value is not >= final value * calender type streaming tests are useless - let's remove them * don't declare printf, especially if you don't intend to use it Differential Revision: https://reviews.llvm.org/D117638
-
Nathan Sidwell authored
Some precursor work to adding module demangling. * some mismatched comment and code in the demangler * a const fn was not marked thusly * we use std::islower. A direct range check is smaller code (no function call), and we know we're in ASCII-land and later in that same function make the same assumption about upper-case contiguity. Heck, maybe just drop the switch's precondition and rely on the optimizer to do its thing? * the directory is cloned in two places, which had gotten out of sync. Differential Revision: https://reviews.llvm.org/D117800
-
Roman Lebedev authored
Checking for specific function terminating opcodes means we don't handle other non-hardcoded ones :) This should probably be generalized to something similar to the `IsBlockFollowedByDeoptOrUnreachable()`. Reviewed By: spatel Differential Revision: https://reviews.llvm.org/D117810
-
Arthur O'Dwyer authored
As prefigured in the comments on D115315. This gives us one unified style for all niebloids, and also simplifies the modulemap. Differential Revision: https://reviews.llvm.org/D116570
-
Craig Topper authored
Similar for ceil, trunc, round, and roundeven. This allows us to use static rounding modes to avoid a libcall. This is similar to D116771, but for the saturating conversions. This optimization is done for AArch64 as isel patterns. RISCV doesn't have instructions for ceil/floor/trunc/round/roundeven so the operations don't stick around until isel to enable a pattern match. Thus I've implemented a DAG combine. I'm only handling saturating to i64 or i32. This could be extended to other sizes in the future. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D116864
-
Daniel Thornburgh authored
This change defers creating Support/Caching.cpp's cache directory until it actually writes to the cache. This allows using Caching library in a read-only fashion. If read-only, the cache is guaranteed not to write to disk. This keeps tools using DebugInfod (currently llvm-symbolizer) hermetic when not configured to perform remote lookups. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D117589
-
Nathan Sidwell authored
In working on a module mangling problem I noticed a few cleanups to the mangler. 1) Use 'if (auto x = ...' idiom in a couple of places. 2) I noticed both 'isFileContext' and 'isNamespace || isTranslationUnit' synonyms. Let's use the former. 3) The control flow in the seqId mangling was misordered. Let's channel Count von Count. Also fix the inconsistent bracing. Differential Revision: https://reviews.llvm.org/D117799
-
Stanislav Mekhanoshin authored
-
Alexandre Ganea authored
After 5af2433e, this shall fix: https://lab.llvm.org/buildbot/#/builders/188/builds/8400 - if not I'll revert this patch and 5af2433e.
-
Jonas Paulsson authored
This flag was set in the presence of stacksave/stackrestore in order to force a frame pointer. This should however not be needed per the comment in MachineFrameInfo.h stating that a a variable sized object "...is the sole condition which prevents frame pointer elimination", and experiments have also shown that there seems to be no effect whatsoever on code generation with ManipulatesSP. Review: Ulrich Weigand
-
John Ericson authored
Its defaulting logic must go after `project(..)` to work correctly, but `project(..)` is often in a standalone condition making this awkward, since the rest of the condition code may also need GNUInstallDirs. The good thing is there are the various standalone booleans, which I had missed before. This makes splitting the conditional blocks less awkward. Reviewed By: arichardson, phosek, beanz, ldionne, #libunwind, #libc, #libc_abi Differential Revision: https://reviews.llvm.org/D117639
-
Marco Elver authored
With 118f966b, Clang matches GCC's behaviour and allows enabling -Wdeclaration-after-statement with C99 and later. However, the check for mixing declarations and code is not a constant time algorithm, and therefore should be guarded with Diags.isIgnored(). Furthermore, improve test coverage with: non-pedantic C89 with the warning; C11 with the warning; and when using -Wall. Finally, mention the changed behaviour in ReleaseNotes.rst. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D117232
-