- Mar 28, 2020
-
-
Henry Kao authored
Data race occurs when acquiring lock for critical section triggering assertion failure. Added barrier to ensure all memory is commited before checking assertion. Reviewed By: Hahnfeld Differential Revision: https://reviews.llvm.org/D76780
-
Matt Arsenault authored
-
https://reviews.llvm.org/D76162#inline-701237diggerlin authored
SUMMARY: Address clang format issue: "clang format this block, I don't think the spaces are aligned correctly." Subscribers: wuzish, nemanjai, hiraditya Differential Revision: https://reviews.llvm.org/D76162
-
Matt Arsenault authored
Having arbitrary passes looking at the TargetOptions is pretty messy. This was also disregarding if a function already had an explicit attribute setting on it. opt/llc now add the attributes to functions that don't specify the attribute. clang and lld do not call the function to do this, which they maybe should. This was also treating unsafe-fp-math as implying the others, and setting the other attributes based on it. This is not done anywhere else, and I'm not sure is correct based on the current description of the option bit. Effectively reverts 1d8cf2be
-
Davide Italiano authored
This reverts commit 89025da9 as it breaks the lldb macOS bot.
-
Matt Arsenault authored
Make these behave the same way unsafe-fp-math and co. The command line flag should add the attribute to functions that do not already have it, and leave existing attributes. The attribute is the actual implementation, but the flag is useful in some testing situations. AMDGPU has a variety of tests with denormals enabled/disabled that would require a painful level of test duplication without a flag. This doesn't expose setting the separate input/output modes, or add a flag for the f32 version yet. Tests will be included in future patch.
-
Reid Kleckner authored
DWARF sections are typically live and not COMDAT, so they would be treated as GC roots. Enabling DWARF would essentially keep all code with debug info alive, preventing any section GC. Fixes PR45273 Reviewed By: mstorsjo, MaskRay Differential Revision: https://reviews.llvm.org/D76935
-
Jonas Devlieghere authored
GetDeveloperDirectory returns a const char* which is NULL when we cannot find the developer directory. This crashes in PlatformDarwinKernel::CollectKextAndKernelDirectories because we're unconditionally assigning it to a std::string. Coincidentally I just refactored a bunch of code in PlatformMacOSX so instead of a ad-hoc fix I've reimplemented the method based on GetXcodeContentsDirectory. The change is mostly NFC. Obviously it fixes the crash, but it also removes support for finding the Xcode directory through he legacy $XCODE_SELECT_PREFIX_DIR/usr/share/xcode-select/xcode_dir_path. Differential revision: https://reviews.llvm.org/D76938
-
Fangrui Song authored
Depends on D76746. Generalizes D61973. Differential Revision: https://reviews.llvm.org/D76754
-
Fangrui Song authored
Generalizes D61992. In GNU as, the .reloc directive supports arbitrary relocation types. A MCFixupKind value `V` larger than or equal to FirstLiteralRelocationKind is used to represent the relocation type whose number is V-FirstLiteralRelocationKind. This is useful for linker tests. Without the feature the assembler cannot produce certain relocation records (e.g. R_ARM_ALU_PC_G0/R_ARM_LDR_PC_G0) This helps move forward D75349 and D76575. Differential Revision: https://reviews.llvm.org/D76746
-
Paul Robinson authored
-
Julian Lettner authored
A previous attempt to cleanup module imports broke installing via pip/setup.py [1]. This should be fixed now. [1] cf252240 Reviewed By: paquette Differential Revision: https://reviews.llvm.org/D76940
-
Fangrui Song authored
-
Sam McCall authored
-
shafik authored
When parsing DWARF and laying out bit-fields we currently don't take into account whether we have a base class or not. Currently if the first field is a bit-field but the bit offset is due a field we inherit from a base class we currently treat it as an unnamed bit-field and therefore add an extra field. This fix will not check if we have a base class and assume that this offset is due to members we are inheriting from the base. We are currently seeing asserts during codegen when debugging clang::DiagnosticOptions. This assumption will fail in the case where the first field in the derived class in an unnamed bit-field. Fixing the first field being an unnamed bit-field looks like it will require a larger change since we will need a way to track or discover the last field offset of the bases(s). Differential Revision: https://reviews.llvm.org/D76808
-
Dan Liew authored
Summary: Follow up fix to 445b810f. The `log show` command only works for privileged users so run a quick test of the command during lit config to see if the command works and only add the `darwin_log_cmd` feature if this is the case. Unfortunately this means the `asan/TestCases/Darwin/duplicate_os_log_reports.cpp` test and any other tests in the future that use this feature won't run for unprivileged users which is likely the case in CI. rdar://problem/55986279 Reviewers: kubamracek, yln, dcoughlin Subscribers: Charusso, #sanitizers, llvm-commits Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D76899
-
Tom Weaver authored
This patch addresses the issue of the regression suite not running on windows hardware. It changes the following things: add new dexter regression suite command to lit.cfg.py that makes use of the clang-cl_vs2015 and dbgend builder and debuggers. sprinkle the new regression suite command through the feature and tool tests that require them. mark certain problem tests on windows There's a couple of tests that fail (or pass) in unexpected ways on Windows. Problem tests are both the penalty and perfect expect_watch_type.cpp tests. Type information reporting parity is not possible a this time in dexter due to the nature of how different debuggers report type information back to their users. reviewers: Orlando Differential Revision: https://reviews.llvm.org/D76609
-
Lang Hames authored
This flag can be used to mark a symbol as existing only for the purpose of enabling materialization. Such a symbol can be looked up to trigger materialization with the lookup returning only once materialization is complete. Symbols with this flag will never resolve however (to avoid permanently polluting the symbol table), and should only be looked up using the SymbolLookupFlags::WeaklyReferencedSymbol flag. The primary use case for this flag is initialization symbols.
-
Lang Hames authored
-
Alexey Bataev authored
Added basic support (parsing/sema checks) for the inscan modifier in the reduction clauses.
-
Craig Topper authored
This will cause the operation to be repeated in both a mask and another masked or unmasked form. This can a wasted of execution resources. Differential Revision: https://reviews.llvm.org/D60940
-
Richard Sandiford authored
Built-in SVE types are trivial, since they're trivially copyable and support default construction. Differential Revision: https://reviews.llvm.org/D76692
-
Richard Sandiford authored
SVE types are trivially copyable: they can be copied simply by reproducing the byte representation of the source object. Differential Revision: https://reviews.llvm.org/D76691
-
Simon Pilgrim authored
-
Dennis Felsing authored
Summary: So that external tools can make use of that information and not display such lines as uncovered. Fixes https://bugs.llvm.org/show_bug.cgi?id=45300 Reviewers: vsk Reviewed By: vsk Differential Revision: https://reviews.llvm.org/D76763
-
Richard Sandiford authored
Built-in SVE types are POD in much the same that scalars and fixed-length vectors are. Differential Revision: https://reviews.llvm.org/D76690
-
Simon Pilgrim authored
LowerSETCC handles strict cases as well, we don't have a separate function.
-
Artem Belevich authored
This reverts commit 6a9ad5f3. The patch breaks CUDA copmilation. Differential Revision: https://reviews.llvm.org/D76365
-
Alexandre Ganea authored
This fixes a number of warnings, where a function is re-defined after it is tagged as "being imported": D:\llvm-project\mlir\lib\ExecutionEngine\CRunnerUtils.cpp(24,17): warning: 'print_i32' redeclared without 'dllimport' attribute: 'dllexport' attribute added [-Winconsistent-dllimport] extern "C" void print_i32(int32_t i) { fprintf(stdout, "%" PRId32, i); } ^ D:\llvm-project\mlir\include\mlir/ExecutionEngine/CRunnerUtils.h(168,42): note: previous declaration is here extern "C" MLIR_CRUNNERUTILS_EXPORT void print_i32(int32_t i); ^ Differential Revision: https://reviews.llvm.org/D76654 -
LLVM GN Syncbot authored
-
jasonliu authored
Summary: Implement several XCOFF hooks to get '-r' option working for llvm-objdump -r. Reviewer: DiggerLin, hubert.reinterpretcast, jhenderson, MaskRay Differential Revision: https://reviews.llvm.org/D75131
-
Mikhail Maltsev authored
Summary: This patch: * adds tests for vreinterpret intinsics in big-endian mode * adds C++ runs to the CDE+MVE header compatibility test Reviewers: simon_tatham, MarkMurrayARM, ostannard, dmgreen Reviewed By: simon_tatham Subscribers: kristof.beyls, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D76927
-
- Mar 27, 2020
-
-
Guillaume Chatelet authored
Summary: This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet Subscribers: arsenm, dschuff, sdardis, nemanjai, jvesely, nhaehnle, sbc100, jgravelle-google, hiraditya, aheejin, kbarton, jrtc27, atanasyan, jfb, kerbowa, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D76925
-
Walter Erquinigo authored
Summary: The DAP specifies the following for the SetBreakpoints request: The breakpoints returned are in the same order as the elements of the 'breakpoints' arguments This was not followed, as lldb-vscode was returning the breakpoints in a different order, because they were first stored into a map, and then traversed. Of course, maps normally don't preserve ordering. See this log I captured: --> {"command":"setBreakpoints", "arguments":{ "source":{ "name":"main.cpp", "path":"/Users/wallace/fbsource/xplat/sand/test-projects/buck-cpp/main.cpp" }, "lines":[6,10,11], "breakpoints":[{"line":6},{"line":10},{"line":11}], "sourceModified":false }, "type":"request", "seq":3 } <-- {"body":{ "breakpoints":[ {"id":1, "line":11,"source":{"name":"main.cpp","path":"xplat/sand/test-projects/buck-cpp/main.cpp"},"verified":true}, {"id":2,"line":6,"source":{"name":"main.cpp","path":"xplat/sand/test-projects/buck-cpp/main.cpp"},"verified":true}, {"id":3,"line":10,"source":{"name":"main.cpp","path":"xplat/sand/test-projects/buck-cpp/main.cpp"},"verified":true}]}, "command":"setBreakpoints", "request_seq":3, "seq":0, "success":true, "type":"response" } As you can see, the order was not respected. This was causing the IDE not to be able to disable/enable breakpoints by clicking on them in the breakpoint view in the lower corner of the Debug tab. This diff fixes the ordering problem. The traversal + querying was done very fast in O(nlogn) time. I'm keeping the same complexity. I also updated a couple of tests to account for the ordering. Reviewers: clayborg, aadsm, kusmour, labath Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D76891 -
Louis Dionne authored
This one was left out from a previous commit.
-
Sam Parker authored
Given that some instructions generate wider result elements than their inputs, flag them as being able to generate non zeros in the false lanes. Differential Revision: https://reviews.llvm.org/D76766
-
Alexey Bataev authored
This reverts commit 36ed0cee to fix a crash in scan_messages.cpp test.
-
Alexandre Ganea authored
-
Louis Dionne authored
Since lit supports expanding substitutions recursively, we can define substitutions in terms of other substitutions. This allows us to simplify how libc++ substitutions are defined. This doesn't change the substitutions at all, it only makes them simpler to define.
-
Simon Pilgrim authored
-