- Sep 22, 2021
-
-
Dmitry Vyukov authored
Include info about MBlock/SyncObj memory consumption in the memory profile. Depends on D110148. Reviewed By: melver, vitalybuka Differential Revision: https://reviews.llvm.org/D110149
-
Dmitry Vyukov authored
We account low and high ranges, but forgot abount the mid range. Account mid range as well. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D110148
-
Sebastian Neubauer authored
Make the update_llc_test_checks script test independant of llc behavior by using cat with static files to simulate llc output. This allows changing llc without breaking the script test case. The update script is executed in a temporary directory, so the llc-generated assembly files are copied there. %T is deprecated, but it allows copying a file with a predictable filename. Differential Revision: https://reviews.llvm.org/D110143
-
Balázs Kéri authored
Import of Attr objects was incomplete in ASTImporter. This change introduces support for a generic way of importing an attribute. For an usage example import of the attribute AssertCapability is added to ASTImporter. Updating the old attribute import code and adding new attributes or extending the generic functions (if needed) is future work. Reviewed By: steakhal, martong Differential Revision: https://reviews.llvm.org/D109608
-
Florian Hahn authored
InstCombine's worklist can be re-used by other passes like VectorCombine. Move it to llvm/Transform/Utils and rename it to InstructionWorklist. Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D110181
-
Diana Picus authored
When compiling the runtime with a version of clang-cl newer than 12, we define CMPLXF as __builtin_complex, which returns a float _Complex type. This errors out in contexts where the result of CMPLXF is expected to be a float_Complex_t. This is defined as _Fcomplex whenever _MSC_VER is defined (and as float _Complex otherwise). This patch defines float_Complex_t & friends as _Fcomplex only when we're using "true" MSVC, and not just clang-pretending-to-be-MSVC. This should only affect clang-cl >= 12. Differential Revision: https://reviews.llvm.org/D110139
-
Jonas Devlieghere authored
Currently you can ask the target symbols add command to locate the debug symbols for the current frame. This patch add an options to do that for the whole call stack. Differential revision: https://reviews.llvm.org/D110011
-
Dmitry Vyukov authored
Don't test for presence of the trace mapping, it will be removed soon. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D110194
-
Dmitry Vyukov authored
ScopedInterceptor::Enable/DisableIgnores is only used for some special cases. Unline them from the common interceptor handling. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D110157
-
Dmitry Vyukov authored
Switch Java heap move to the new scheme required for the new tsan runtime. Instead of copying the shadow we reset the destination range. The new v3 trace contains addresses of accesses, so we cannot simply copy the shadow. This can lead to false negatives, but cannot lead to false positives. Depends on D110159. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D110190
-
Michael Kruse authored
This command line options allow to off parts of the schedule tree optimization pipeline.
-
Dmitry Vyukov authored
Pass -msse4.2 flag to the tests the same way we do for the runtime. Layout of some structs in the runtime headers depends on the flag (TSAN_VECTORIZE), so we need it to be consistent across the runtime and tests. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D110192
-
Dmitry Vyukov authored
CallUserSignalHandler function is quite large and complex. Move errno spoiling reporting into a separate function. No logical changes. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D110159
-
Dmitry Vyukov authored
dlsym calls into dynamic linker which calls malloc and other things. It's problematic to do it during the actual exit, because it can happen from a singal handler or from within the runtime after we reported the first bug, etc. See https://github.com/google/sanitizers/issues/1440 for an example (captured in the added test). Initialize the callbacks during startup instead. Depends on D110159. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D110166
-
Chen Zheng authored
-
Aart Bik authored
This change adds automatic wrapper functoins with emit_c_interface to all methods in the sparse support library that deal with MEMREFs. The wrappers will take care of passing MEMREFs by value internally and by pointer externally, thereby avoiding ABI issues across platforms. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D110219
-
Shao-Ce SUN authored
-
Louis Dionne authored
Also, as a fly-by fix, use `inline` directly to define inline variables (all compilers support it). Differential Revision: https://reviews.llvm.org/D110208
-
David Blaikie authored
Using the preferred name creates a mismatch between the textual name of a type and the DWARF tags describing the parameters as well as possible inconsistency between DWARF producers (like Clang and GCC, or older/newer Clang versions, etc).
-
Shao-Ce SUN authored
and deleted useless lines. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D109799
-
Matt Arsenault authored
Add an overload to pass the flat workgroup range in separately. This will allow the attributor to use the assumed value for amdgpu-flat-workgroup-sizes when inferring amdgpu-waves-per-eu.
-
Chen Zheng authored
This is a follow-up of D105872. Now we are able to prepare for update form with non-const increment. Reviewed By: jsji Differential Revision: https://reviews.llvm.org/D106032
-
Joe Loser authored
Two tests in span.cons/deduct.pass.cpp accidentally check whether the iterator range from member begin and member end are equivalent to the ones from free begin and free end. This is obviously true and not intended. Correct the intent by comparing the size/data from the span with the source input. While in the neighborhood, add test for const int arr[N], remove extraneous type aliases, unused <type_traits> header, and the disable_missing_braces_warning.h include. Reviewed By: Quuxplusone, ldionne, #libc Differential Revision: https://reviews.llvm.org/D109668
-
Matt Arsenault authored
This combination of amdgpu-waves-per-eu and amdgpu-flat-work-group-size cannot be satisfied at the same time, so this was using the default.
-
David Blaikie authored
-
David Blaikie authored
-
Shao-Ce SUN authored
-
Shao-Ce SUN authored
-
Teresa Johnson authored
Change the mutex type to one that initializes on construction and hopefully avoid what appear to be deadlock failures in the new test on a couple bots, e.g.: https://green.lab.llvm.org/green/job/clang-stage1-RA/24140/testReport/SanitizerCommon-Unit/__Sanitizer-x86_64-Test/SanitizerCommon_ReportFile/
-
Chris Lattner authored
DialectAsmParser has a `parseAttribute` member that takes a contextual type, but DialectAsmPrinter doesn't have the corresponding member to take advantage of it. As such, custom attribute implementations can't really use it. This adds the obvious missing method which fills this hole. Differential Revision: https://reviews.llvm.org/D110211
-
David Tenty authored
These routines were add years ago during initial porting attempts to AIX and are mostly build hacks for routines which we're missing at the time, but are available now on recent AIX OS levels. Thus builds on modern AIX OS levels no longer need these and they cause problems if you try to build the library with a generic triple (i.e. powerpc-ibm-aix) as we'll pull them in and encounter duplicate definitions from the OS. Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D110183
-
Wenlei He authored
Add a new LLVM switch `-profile-sample-block-accurate` to trust zero block counts for branches. Currently we leave out such zero counts when annotating branch weight metadata, which would lead to weights being considered as unknown. Differential Revision: https://reviews.llvm.org/D110117
-
Louis Dionne authored
The file was a duplicate of atomic_support.h in libc++. Since we now require the libc++ sources in order to build libc++abi, it's OK to remove this duplication. Thanks to @chandlerc for noticing this. Differential Revision: https://reviews.llvm.org/D110103
-
Teresa Johnson authored
When setting the report path, recursively create the directory as needed. This brings the profile path support for memprof on par with normal PGO. The code was largely cloned from __llvm_profile_recursive_mkdir in compiler-rt/lib/profile/InstrProfilingUtil.c. Differential Revision: https://reviews.llvm.org/D109794
-
Toshihito Kikuchi authored
To intercept the functions in Win11's ntdll.dll, we need to use the trampoline technique because there are bytes other than 0x90 or 0xcc in the gaps between exported functions. This patch adds more patterns that appear in ntdll's functions. Bug: https://bugs.llvm.org/show_bug.cgi?id=51721 Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D109941
-
Usman Nadeem authored
Differential Revision: https://reviews.llvm.org/D109665 Change-Id: I9d2928688b80b804a16f52928e2057749ec2c0b2
-
Yuanfang Chen authored
The idiom helps with parameter unpacking so the return value is not important. Make it explicit.
-
Arthur Eubanks authored
And always print it. This makes some LLVM diagnostics match up better with Clang's diagnostics. Updated some AMDGPU uses of DiagnosticInfoResourceLimit and now we print better diagnostics for those. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D110204
-
Kirill Stoimenov authored
[asan] Fixed a bug causing a crash when redzone optimization kicked in on X86 with -asan-optimize-callbacks flag on. This change adds the ASan intrinsic to the list whihc are setting hasCopyImplyingStackAdjustment. Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D110012
-
Alex Zinenko authored
Previously, the translation to LLVM IR would emit IR that directly uses a scope metadata node in case only one scope was in use in alias.scopes or noalias metadata. It should always be a list of scopes. The verifier change in 8700f2bd enforced this and broke the test. Fix the translation to always create a list of scopes using a new metadata node, update and reenable the respective test. Fixes PR51919. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D110140
-