- Nov 01, 2021
-
-
Fangrui Song authored
[ELF] Replace "symbol '...' has no type" diagnostic with "relocation ... cannot be used against symbol '...'" The "symbol 'foo' has no type" diagnostic tries to inform that copy relocation/canonical PLT entry cannot be used, but the diagnostic is often incorrect and confusing.
-
Roman Lebedev authored
For certain combination of LHS and RHS constant ranges, the signedness of the relational comparison predicate is irrelevant. This implements complete and precise model for all predicates, as confirmed by the brute-force tests. I'm not sure if there are some more cases that we can handle here. In a follow-up, CVP will make use of this. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D90924
-
Fangrui Song authored
-
Vitaly Buka authored
This is NOOP in x86_64. On arch64 it avoids Data Memory Barrier with visible improvements on micro benchmarks. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D112391
-
Vitaly Buka authored
To make pid initialized for Msan. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D112784
-
Fangrui Song authored
The hint does not pull its weight: * adding -Wl,-z,notext often won't work (relocation types other than `symbolRel`, e.g. `R_AARCH64_LDST32_ABS_LO12_NC`) * for pure (no assembly) C/C++ projects, the "-fPIC" hint is sufficient
-
Lang Hames authored
-
Fangrui Song authored
-
Lang Hames authored
MachOPlatform used to make an EPC-call (registerObjectSections) to register the eh-frame and thread-data sections for each linked object with the ORC runtime. Now that JITLinkMemoryManager supports allocation actions we can use these instead of an EPC call. This saves us one EPC-call per object linked, and manages registration/deregistration in the executor, rather than the controller process. In the future we may use this to allow JIT'd code in the executor to outlive the controller object while still being able to be cleanly destroyed. Since the code for allocation actions must be available when the actions are run, and since the eh-frame registration code lives in the ORC runtime itself, this change required that MachO eh-frame support be split out of macho_platform.cpp and into its own macho_ehframe_registration.cpp file that has no other dependencies. During bootstrap we start by forcing emission of macho_ehframe_registration.cpp so that eh-frame registration is guaranteed to be available for the rest of the bootstrap process. Then we load the rest of the MachO-platform runtime support, erroring out if there is any attempt to use TLVs. Once the bootstrap process is complete all subsequent code can use all features.
-
Lang Hames authored
Alloc actions should return a CWrapperFunctionResult. JITLink does not have access to this type yet, due to library layering issues, so add a cut-down version with a fixme.
-
Craig Topper authored
Fix LegalizeVectorOps to not try shuffle or unrolling expansions for scalable vectors. Differential Revision: https://reviews.llvm.org/D112236
-
- Oct 31, 2021
-
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Jake Egan authored
This patch removes the verbose option from tests that do not need it and simplifies the checks. For tests that do have the verbose option, the checks were standardized to be more readable and consistent. Reviewed By: shchenz, dblaikie Differential Revision: https://reviews.llvm.org/D112636
-
Jake Egan authored
`.debug_frame` is not emitted on AIX, so this patch disables the test. Reviewed By: shchenz, jsji Differential Revision: https://reviews.llvm.org/D112593
-
Alex Zinenko authored
Provide support for removing an operation from the block that contains it and moving it back to detached state. This allows for the operation to be moved to a different block, a common IR manipulation for, e.g., module merging. Also fix a potential one-past-end iterator dereference in Operation::moveAfter discovered in the process. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D112700
-
Matthias Springer authored
The list of operations that do neither read nor write, but create an alias when bufferizing inplace, is getting longer. This commit adds a helper function so that we do not have to spell out the entire list each time. Differential Revision: https://reviews.llvm.org/D112515
-
Matthias Springer authored
tensor::CastOp by itself does not bufferize to memory read/write. Differential Revision: https://reviews.llvm.org/D112514
-
Fangrui Song authored
Will be useful if we move R_ARM_V4BX handling around.
-
Fangrui Song authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Lang Hames authored
This type has been moved up into the llvm::orc::shared namespace. This type was originally put in the detail:: namespace on the assumption that few (if any) LLVM source files would need to use it. In practice it has been needed in many places, and will continue to be needed until/unless OrcTargetProcess is fully merged into the ORC runtime.
-
Nico Weber authored
When comparing relocations against two symbols, ICF's equalsConstant() did not look at the value of the two symbols. With subsections_via_symbols, the value is usually 0 but not always: In particular, it isn't 0 for constants in string and literal sections. Since we ignored the value, comparing two constant string symbols or two literal symbols always compared the 0th's element, so functions in the same TU always compared as equal. This can cause mislinks, and, with -dead_strip, crashes. Fixes PR52349, see that bug for lots of details and examples of mislinks. While here, make the existing assembly in icf-literals.s a bit more realistic (use leaq instead of movq with strings, and use foo(%rip) instead of foo@gotpcrel(%rip)). This has no interesting effect, it just maybe makes the test look a bit less surprising. Differential Revision: https://reviews.llvm.org/D112862
-
Danil Stefaniuc authored
This diff adds a data formatter for libstdcpp's multiset. Besides, it improves and unifies the tests for multiset for libcxx and libstdcpp for maintainability. Reviewed By: wallace Differential Revision: https://reviews.llvm.org/D112785
-
Frederic Cambus authored
We only need the operating system name, not all information. Differential Revision: https://reviews.llvm.org/D111797
-
Danil Stefaniuc authored
This diff adds a data formatter for libstdcpp's multimap. Besides, it improves and unifies the tests for multimap for libcxx and libstdcpp for maintainability. Reviewed By: wallace Differential Revision: https://reviews.llvm.org/D112752
-
Shilei Tian authored
The synchronization at the end of parallel region cannot make sure all threads exit the scope. As a result, the assertions right after it might be hit, and further the `state::assumeInitialState(IsSPMD)` in `__kmpc_target_deinit` may not hold as well. We either add a synchronization right after the parallel region, or remove the assertions and assuptions. Here we choose the first one as those assertions and assumptions can help optimizations. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D112861
-
Ludovic Jozeau authored
There is an indentation issue in Format.h causing the html to not render correctly It's a `\code` block in the documentation of SpacesInLineComment - fix intentation of `SpacesInLineComment` - warn on indentation error - also warn on `\code` `\endcode` mismatch - generate precise warnings - fix some minor and style issues: - avoid confusion with the built-in `type` function - fix wrong print on `os.sys.stderr` (instead of `sys.stderr`) - use `with as` pattern for files Reviewed By: MyDeveloperDay, HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D112572
-
xndcn authored
Differential Revision: https://reviews.llvm.org/D112819
-
Erik Larsson authored
When running git-clang-format in a pre-commit hook it's very useful to be able to tell git-clang-format to only look at the --staged/--cached files and not the working directory. Note this patch is a rebase/fork from {D41147 } which is a fork of {D15465 } Reviewed By: MyDeveloperDay, HazardyKnusperkeks, lodato Differential Revision: https://reviews.llvm.org/D90996 Co-authored-by:Mark Lodato <lodato@google.com>
-
- Oct 30, 2021
-
-
Kazu Hirata authored
The function was introduced without any use on Nov 9, 2015 in commit 7cd08927.
-
Kazu Hirata authored
This function seems to be unused for at least one year.
-
Kazu Hirata authored
-
Roman Lebedev authored
As noted in https://reviews.llvm.org/D90924#inline-1076197 apparently this is a pretty common pattern, let's not repeat it yet again, but have it in a common place. There may be some more places where it could be used, but these are the most obvious ones.
-
David Green authored
The maximal value of a half is 0x7bff, which is 65504 when converted to an integer. This patch teaches that to computeConstantRange to compute a constant range with the correct maximum value. https://alive2.llvm.org/ce/z/BV_Spb https://alive2.llvm.org/ce/z/Nwuqvb The maximum value for a float converted in the same way is 3.4e38, which requires 129bits of data. I have not added that here as integer types so larger are rare, compared to integers types larger than 17 bits require for half floats. The MVE tests change because instsimplify happens to be run as a part of the backend, where it doesn't tend to for other backends. Differential Revision: https://reviews.llvm.org/D112694
-
Groverkss authored
This patch reorders mergeLocalIds usage to merge locals only after number of dimensions and symbols are same. This does not change any functionality because it does not matter in what order identifiers are merged, since the reason to do it is to ensure that two FACs are aligned. The order ensured in this patch simplifies a subsequent patch to improve mergeLocalIds which requires dimensions and symbols to be aligned. Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D112841
-
Raphael Isemann authored
Reviewed By: mib Differential Revision: https://reviews.llvm.org/D112379
-