- Jun 07, 2021
-
-
Esme-Yi authored
error: ambiguous overload for 'operator==' (operand types are 'llvm::yaml::Hex16' and 'llvm::XCOFF::MagicNumber') Is64Bit = Obj.Header.Magic == XCOFF::XCOFF64; -
Esme-Yi authored
Summary: The patch implements the mapping of the Yaml information to XCOFF object file to enable the yaml2obj tool for XCOFF. Currently only 32-bit is supported. Reviewed By: jhenderson, shchenz Differential Revision: https://reviews.llvm.org/D95505
-
Nico Weber authored
Differential Revision: https://reviews.llvm.org/D103779
-
Nico Weber authored
Differential Revision: https://reviews.llvm.org/D103775
-
Nico Weber authored
The flag to set it is called `-install_name`, and it's called `installName` in tbd files. No behavior change. Differential Revision: https://reviews.llvm.org/D103776
-
Nico Weber authored
Also simply a conditional and de-alias a variable. Minor cleanups, no behavior change. Differential Revision: https://reviews.llvm.org/D103774
-
Jianzhou Zhao authored
dfsan does not use sanitizer allocator as others. In practice, we let it use glibc's allocator since tcmalloc needs more work to be working with dfsan well. With glibc, we observe large memory leakage. This could relate to two things: 1) glibc allocator has limitation: for example, tcmalloc can reduce memory footprint 2x easily 2) glibc may call unmmap directly as an internal system call by using system call number. so DFSan has no way to release shadow spaces for those unmmap. Using sanitizer allocator addresses the above issues 1) its memory management is close to tcmalloc 2) we can register callback when sanitizer allocator calls unmmap, so dfsan can release shadow spaces correctly. Our experiment with internal server-based application proved that with the change, in a-few-day run, memory usage leakage is close to what tcmalloc does w/o dfsan. This change mainly follows MSan's code. 1) define allocator callbacks at dfsan_allocator.h|cpp 2) mark allocator APIs to be discard 3) intercept allocator APIs 4) make dfsan_set_label consistent with MSan's SetShadow when setting 0 labels, define dfsan_release_meta_memory when unmap is called 5) add flags about whether zeroing memory after malloc/free. dfsan works at byte-level, so bit-level oparations can cause reading undefined shadow. See D96842. zeroing memory after malloc helps this. About zeroing after free, reading after free is definitely UB, but if user code does so, it is hard to debug an overtainting caused by this w/o running MSan. So we add the flag to help debugging. This change will be split to small changes for review. Before that, a question is "this code shares a lot of with MSan, for example, dfsan_allocator.* and dfsan_new_delete.*. Does it make sense to unify the code at sanitizer_common? will that introduce some maintenance issue?" Reviewed By: morehouse Differential Revision: https://reviews.llvm.org/D101204
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
David Green authored
-
David Green authored
-
Simon Pilgrim authored
Add missing v16f32/v8f64 costs and adjust other costs as well based off the SkylakeServer model
-
Craig Topper authored
We should be exiting when the shift amount is greater than the bit width regardless of whether it is a power of 2. Reported by Simon Pilgrim here https://reviews.llvm.org/D96661 This requires getting a shift amount that is out of bounds that wasn't already optimized by SelectionDAG. This would be pretty trick to construct a test for. Or it would require a non-power of 2 shift amount and a mask that has runs of ones and zeros of the next lowest power of 2 from that shift amount. I tried a little to produce a test for this, but didn't get it to work.
-
Simon Pilgrim authored
Non-Strict v2f32->v2i64 cases have already early-returned to be handled by legalization.
-
Simon Pilgrim authored
OutSVT is guaranteed to be i8/i16 and we accept any InSVT that isn't i64
-
maekawatoshiki authored
This reverts commit 21653600. To fix the crash problem in legacy pass manager
-
- Jun 06, 2021
-
-
Michael Kruse authored
Multiple clauses are mutually exclusive. This patch refactors the functions that check for pairs of mutually exclusive clauses into a generalized function which also also accepts a list of clause types if which at most one can appear. NFC patch extracted out of D99459 by request. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D103666
-
Simon Pilgrim authored
The MCSymbol data should always be present for non-absolute sections so assert that it is to silence static analysis warnings.
-
Nikita Popov authored
Don't require a specific kind of IRBuilder for TargetLowering hooks. This allows us to drop the IRBuilder.h include from TargetLowering.h. Differential Revision: https://reviews.llvm.org/D103759
-
Nikita Popov authored
This currently depends on a transitive include via TargetLowering.h.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Use cast<> instead which will assert that the cast is correct and not just return null - the match() should have already failed if the cast isn't valid anyhow. Fixes static analysis warning.
-
Michael Kruse authored
The current method getSingleClause requires an instance of OMPExecutableDirective to be called. Introduce a static version taking a list of clauses as argument instead that can be used during parsing/Sema before any OMPExecutableDirective has been created. This is the same approach as taken for getClausesOfKind for getting more more than a single clause of a type which also has a method and static version. NFC patch extracted out of D99459 by request. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D103665
-
Nikita Popov authored
Move methods using IRBuilder out of line, so we can drop the dependency on the header.
-
Nikita Popov authored
These currently rely on the IRBuilder.h include in TargetLowering.h. Make them explicit.
-
Simon Pilgrim authored
We've already checked that ScanIdx == 0 a few lines above.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
PatternMatch.h - wrap WrapFlags tests inside brackets to stop static analysis warning about & vs && usage. NFCI.
-
Simon Pilgrim authored
Use cast<> instead which will assert that the cast is correct and not just return null. Fixes static analysis warnings.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Noticed while investigating if we can remove an unnecessary MathExtras.h include from SmallVector.h
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Revert rG0b18c4c0 "SmallVector.h - remove unused MathExtras.h header (REAPPLIED). NFCI." Buildbots still seem to find implicit header dependencies that I can't locally....
-
Simon Pilgrim authored
Try again to remove this header - I think I've found the implicit dependencies (mainly for <cmath>) on linux builds now.
-
Liqiang Tao authored
-
Liqiang Tao authored
This patch abstract Calls in Inliner:run() to InlineOrder. With this patch, it's possible to customize the inlining order, i.e. use queue or priority queue. Reviewed By: kazu Differential Revision: https://reviews.llvm.org/D103315
-
Simon Pilgrim authored
Noticed while investigating if we can remove an unnecessary MathExtras.h include from SmallVector.h (necessary for gcc builds but not MSVC)
-
Simon Pilgrim authored
-