- Nov 10, 2021
-
-
Christian Kandeler authored
Real-world use case: The Qt framework's headers have the same name as the respective class defined in them, and Qt's traditional qmake build tool uses -I (rather than -isystem) to pull them in. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D112996
-
Kazu Hirata authored
-
Salman Javed authored
Fixes pr40372 (https://bugs.llvm.org/show_bug.cgi?id=40372). The llvm-header-guard check does not take into account that the path separator on Windows is `\`, not `/`. This means that instead of suggesting a header guard in the form of: LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_FOO_H it incorrectly suggests: C:\LLVM_PROJECT\CLANG_TOOLS_EXTRA\CLANG_TIDY\FOO_H Differential Revision: https://reviews.llvm.org/D113450
-
Danil Stefaniuc authored
This diff adds a data formatter for libstdcpp's forward_list. Besides, it refactors the existing code by extracting the common functionality between libstdcpp forward_list and list formatters into the AbstractListSynthProvider class. Reviewed By: wallace Differential Revision: https://reviews.llvm.org/D113362
-
Amara Emerson authored
If the source reg is a 64b vreg, then we need to emit a subreg copy to a 32b gpr before we select sub-64b variants like STLRW.
-
Fangrui Song authored
-
Fangrui Song authored
-
Jorge Gorbe Moya authored
-
hsmahesha authored
at the start of the entry block, which in turn would aid better code transformation/optimization. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D110257
-
Igor Kudrin authored
As for now, the categories are printed in an arbitrary order which depends on the addresses of dynamically allocated objects. The patch sorts them in an alphabetical order thus making the output stable. Differential Revision: https://reviews.llvm.org/D113477
-
Igor Kudrin authored
llvm::MapVector, compared to std::map, guarantees the same iteration order in different runs. Differential Revision: https://reviews.llvm.org/D113168
-
Vitaly Buka authored
Depends on D113328. Differential Revision: https://reviews.llvm.org/D113454
-
Vitaly Buka authored
If async signal handler called when we MsanThread::Init signal handler may trigger false reports. I failed to reproduce this locally for a test. Differential Revision: https://reviews.llvm.org/D113328
-
Vitaly Buka authored
Differential Revision: https://reviews.llvm.org/D113452
-
Jacques Pienaar authored
Enables using the same iterator interface to these even though underlying storage is different. Differential Revision: https://reviews.llvm.org/D113512
-
Mehdi Amini authored
The printer for Attribute/Type does not need to include the mnemonic anymore.
-
Mehdi Amini authored
The change in f30a8a6f conflicted with the recently landed feature on ODS assembly format for Attribute/Type.
-
David Blaikie authored
This handles DWARFv4 and DWARFv5 type units, but not Split DWARF type units. That'll come in a follow-up patch.
-
Mehdi Amini authored
This breaking change requires to remove printing the mnemonic in the print() method on Type/Attribute classes. This makes it consistent with the parsing code which alread handles the mnemonic outside of the parsing method. This likely won't break the build for anyone, but tests will start failing for dialects downstream. The fix is trivial and look like going from: void emitc::OpaqueType::print(DialectAsmPrinter &printer) const { printer << "opaque<\""; to: void emitc::OpaqueAttr::print(DialectAsmPrinter &printer) const { printer << "<\""; Reviewed By: rriddle, aartbik Differential Revision: https://reviews.llvm.org/D113334 -
Mehdi Amini authored
Add a new `useDefaultTypePrinterParser` boolean settings on the dialect (default to false for now) that emits the boilerplate to dispatch type parsing/printing to the auto-generated method. We will likely turn this on by default in the future. Differential Revision: https://reviews.llvm.org/D113332
-
Mehdi Amini authored
Add a new `useDefaultAttributePrinterParser` boolean settings on the dialect (default to false for now) that emits the boilerplate to dispatch attribute parsing/printing to the auto-generated method. We will likely turn this on by default in the future. Differential Revision: https://reviews.llvm.org/D113329
-
Mehdi Amini authored
This structure is necessary to be able to use AttrDef as arguments on operations. Differential Revision: https://reviews.llvm.org/D113327
-
Jessica Paquette authored
The existing code didn't add all necessary successors, which resulted in disjoint basic blocks. These would end up not being legalized which, in the best case, caused a fallback only in assert builds. Here's an example: https://godbolt.org/z/ndx15Enfj We also end up getting weird codegen here as well. Refactoring the code here allows us to correctly attach all successors. With this patch, the above example gives correct codegen at -O0 with and without asserts. Also autogen the testcase to show that we add all the successors now. Differential Revision: https://reviews.llvm.org/D113437
-
David Blaikie authored
-
Nathan Sidwell authored
-
Stanislav Mekhanoshin authored
Tests for: ``` (c | ~(a & b)) & (b | ~(a & c)) --> ~(a & (b ^ c)) (b | ~(a & c)) & ~(a & b) --> ~((b | c) & a) (b & ~(a | c)) | ~(a | b) --> ~((b & c) | a) (2 uses test) ```
-
Arthur Eubanks authored
-
Craig Topper authored
These just fall back to libcalls.
-
Roman Lebedev authored
Tests mainly stolen from https://reviews.llvm.org/D109749
-
Matt Arsenault authored
If a kernel had no formal arguments but did have the implicit arguments, we were reporting a required kernarg alignment of 4. For some reason we require an 8-byte alignment for this, even though there's no real advantage and I don't see where this is documented in the ABI. The code object header code also claims the minimum alignment is 16, which is what I thought you always got at runtime anyway so I don't know why this matters.
-
Joseph Huber authored
This patch removes the assumption propagation that was added in D110655 primarily to get assumption informatino on opaque call sites for optimizations. The analysis done in D111445 allows us to do this more intelligently in the back-end. Depends on D111445 Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D111463
-
Joseph Huber authored
This patch uses the abstract attributor introduced in D111054 to get the assumption values instead of the `hasAssumption` function. This also calls it so assumption information should propagate throug the device where applicabile. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D111445
-
Joseph Huber authored
This patch introduces a new abstract attributor instance that propagates assumption information from functions. Conceptually, if a function is only called by functions that have certain assumptions, then we can apply the same assumptions to that function. This problem is similar to calculating the dominator set, but the assumptions are merged instead of nodes. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D111054
-
Kostya Serebryany authored
add tracing for loads and stores. The primary goal is to have more options for data-flow-guided fuzzing, i.e. use data flow insights to perform better mutations or more agressive corpus expansion. But the feature is general puspose, could be used for other things too. Pipe the flag though clang and clang driver, same as for the other SanitizerCoverage flags. While at it, change some plain arrays into std::array. Tests: clang flags test, LLVM IR test, compiler-rt executable test. Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D113447
-
Saleem Abdulrasool authored
This splits out the generated headers and conditonalises them upon the target being enabled. The motivation here is that the RISCV header alone added 10MB to the resource directory, which was previously at 10MB, increasing the build size and time. This header is contributing ~50% of the size of the resource headers (~10MB). The ARM generated headers are contributing about ~10% or 1MB. This could be extended further adding only the static resource headers for the targets that the LLVM build supports. The changes to the tests for ARM mirror what the RISCV target already did and rnk identified as a possible issue. Testing: cmake -G Ninja -D LLVM_TARGETS_TO_BUILD=X86 -D LLVM_ENABLE_PROJECTS="clang;lld" ../clang ninja check-clang Differential Revision: https://reviews.llvm.org/D112890 Reviewed By: craig.topper
-
Arthur Eubanks authored
This reverts commit ee765256. Causes crashes, see comments in D104827.
-
James Y Knight authored
(Apparently no buildbots enable both examples and plugins!)
-
Itay Bookstein authored
Previously, the Backend_Emit{Nothing,BC,LL} modes did not run the LLVM verifier since it is usually added via the TargetMachine::addPassesToEmitFile method according to the DisableVerify parameter. This is called from EmitAssemblyHelper::AddEmitPasses, which is only relevant for BackendAction-s that require CodeGen. Note: * In these particular situations the verifier is added to the optimization pipeline rather than the codegen pipeline so that it runs prior to the BC/LL emission pass. * This change applies to both the old and the new PMs. * Because the clang tests use -emit-llvm ubiquitously, this change will enable the verifier for them. * A small bug is fixed in emitIFuncDefinition so that the clang/test/CodeGen/ifunc.c test would pass: the emitIFuncDefinition incorrectly passed the GlobalDecl of the IFunc itself to the call to GetOrCreateLLVMFunction for creating the resolver. Signed-off-by:Itay Bookstein <ibookstein@gmail.com> Reviewed By: rjmccall Differential Revision: https://reviews.llvm.org/D113352
-
Itay Bookstein authored
Signed-off-by:
Itay Bookstein <ibookstein@gmail.com> Reviewed By: MaskRay, erichkeane Differential Revision: https://reviews.llvm.org/D112868
-
Itay Bookstein authored
Signed-off-by:
Itay Bookstein <ibookstein@gmail.com> Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D113431
-