- Dec 31, 2020
-
-
Stella Laurenzo authored
-
Stella Laurenzo authored
* Works in tandem with prototype packaging scripts here: https://github.com/stellaraccident/mlir-py-release * The `mlir` top-level now differentiates between in-tree builds where all packages are co-located and distribution mode where all native components are under a top-level `_mlir_libs` package. * Also fixes the generated dialect python installation again. Hopefully the last tweak. * With this, I am able to install and generate archives with the above setup script on Linux. Archive size=31M with just host codegen and headers/shared-libraries. Will need more linker tweaks when wiring up the next dependent project. Differential Revision: https://reviews.llvm.org/D93936
-
Thorsten Schütt authored
-
Luo, Yuanke authored
Differential Revision: https://reviews.llvm.org/D92837
-
Fangrui Song authored
* static relocation model: always * other relocation models: if isStrongDefinitionForLinker This will make LLVM IR emitted for COFF/Mach-O and executable ELF similar.
-
Fangrui Song authored
For a definition (of most linkage types), dso_local is set for ELF -fno-pic/-fpie and COFF, but not for Mach-O. This nuance causes unneeded binary format differences. This patch replaces (function) `define ` with `define{{.*}} `, (variable/constant/alias) `= ` with `={{.*}} `, or inserts appropriate `{{.*}} ` if there is an explicit linkage. * Clang will set dso_local for Mach-O, which is currently implied by TargetMachine.cpp. This will make COFF/Mach-O and executable ELF similar. * Eventually I hope we can make dso_local the textual LLVM IR default (write explicit "dso_preemptable" when applicable) and -fpic ELF will be similar to everything else. This patch helps move toward that goal. -
Monk Chiang authored
Define intrinsics: 1. vfcvt.xu.f.v/vfcvt.x.f.v 2. vfcvt.rtz.xu.f.v/vfcvt.rtz.x.f.v 3. vfcvt.f.xu.v/vfcvt.f.x.v We work with @rogfer01 from BSC to come out this patch. Authored-by:
Roger Ferrer Ibanez <rofirrim@gmail.com> Co-Authored-by:
Monk Chiang <monk.chiang@sifive.com> Differential Revision: https://reviews.llvm.org/D93933
-
Monk Chiang authored
Define intrinsics: 1. vfncvt.xu.f.w/vfncvt.x.f.w 2. vfncvt.rtz.xu.f.w/vfncvt.rtz.x.f.w 3. vfncvt.f.xu.w/vfncvt.f.x.w 4. vfncvt.f.f.w/vfncvt.rod.f.f.w We work with @rogfer01 from BSC to come out this patch. Authored-by:
Roger Ferrer Ibanez <rofirrim@gmail.com> Co-Authored-by:
Monk Chiang <monk.chiang@sifive.com> Differential Revision: https://reviews.llvm.org/D93932
-
Monk Chiang authored
Define intrinsics: 1. vfwcvt.xu.f.v/vfwcvt.x.f.v 2. vfwcvt.rtz.xu.f.v/vfwcvt.rtz.x.f.v 3. vfwcvt.f.xu.v/vfwcvt.f.x.v 4. vfwcvt.f.f.v We work with @rogfer01 from BSC to come out this patch. Authored-by:
Roger Ferrer Ibanez <rofirrim@gmail.com> Co-Authored-by:
Monk Chiang <monk.chiang@sifive.com> Differential Revision: https://reviews.llvm.org/D93855
-
Monk Chiang authored
Add vfredosum/vfredsum/vwredsum/vwredsumu testcase. Differential Revision: https://reviews.llvm.org/D93887
-
Vitaly Buka authored
This makes suppression list to work similar to __lsan_ignore_object. Existing behavior was inconsistent and very inconvenient for complex data structures. Example: struct B; struct A { B* ptr; }; A* t = makeA(); t->ptr = makeB(); Before the patch: if makeA suppressed by suppression file, lsan will still report the makeB() leak, so we need two suppressions. After the patch: a single makeA suppression is enough (the same as a single __lsan_ignore_object(t)). Differential Revision: https://reviews.llvm.org/D93884 -
Fangrui Song authored
When building abseil-cpp `bin/absl_hash_test` with Clang in -fno-pic mode, an instruction like `movl $foo-2147483648, $eax` may be produced (subtracting a number from the address of a static variable). If foo's address is smaller than 2147483648, GNU ld/gold/LLD will error because R_X86_64_32 cannot represent a negative value. ``` using absl::Hash; struct NoOp { template < typename HashCode > friend HashCode AbslHashValue(HashCode , NoOp ); }; template <typename> class HashIntTest : public testing::Test {}; TYPED_TEST_SUITE_P(HashIntTest); TYPED_TEST_P(HashIntTest, BasicUsage) { if (std::numeric_limits< TypeParam >::min ) EXPECT_NE(Hash< NoOp >()({}), Hash< TypeParam >()(std::numeric_limits< TypeParam >::min())); } REGISTER_TYPED_TEST_CASE_P(HashIntTest, BasicUsage); using IntTypes = testing::Types< int32_t>; INSTANTIATE_TYPED_TEST_CASE_P(My, HashIntTest, IntTypes); ld: error: hash_test.cc:(function (anonymous namespace)::gtest_suite_HashIntTest_::BasicUsage<int>::TestBody(): .text+0x4E472): relocation R_X86_64_32 out of range: 18446744071564237392 is not in [0, 4294967295]; references absl::hash_internal::HashState::kSeed ``` Actually any negative offset is not allowed because the symbol address can be zero (e.g. set by `-Wl,--defsym=foo=0`). So disallow such folding. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D93931 -
Atmn Patel authored
From C11 and C++11 onwards, a forward-progress requirement has been introduced for both languages. In the case of C, loops with non-constant conditionals that do not have any observable side-effects (as defined by 6.8.5p6) can be assumed by the implementation to terminate, and in the case of C++, this assumption extends to all functions. The clang frontend will emit the `mustprogress` function attribute for C++ functions (D86233, D85393, D86841) and emit the loop metadata `llvm.loop.mustprogress` for every loop in C11 or later that has a non-constant conditional. This patch modifies LoopDeletion so that only loops with the `llvm.loop.mustprogress` metadata or loops contained in functions that are required to make progress (`mustprogress` or `willreturn`) are checked for observable side-effects. If these loops do not have an observable side-effect, then we delete them. Loops without observable side-effects that do not satisfy the above conditions will not be deleted. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D86844
-
Nico Weber authored
These are new in Xcode 12's ld64. lld never codesigns at the moment, so -no_adhoc_codesign doesn't even have to warn that it's not implemented.
-
Kazu Hirata authored
The last use of the function, located in RemovePredecessorAndSimplify, was removed on Dec 25, 2020 in commit 46bea9b2. The last use of RemovePredecessorAndSimplify was removed on Sep 29, 2010 in commit 99c985c3.
-
Kazu Hirata authored
-
Kazu Hirata authored
-
Fangrui Song authored
Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D92899
-
Fangrui Song authored
TargetMachine::shouldAssumeDSOLocal currently implies dso_local for such definitions. Since clang -fno-pic add the dso_local specifier, we don't need to special case.
-
Fangrui Song authored
-
Fangrui Song authored
This effect is not testable until we drop the implied dso_local for ELF static/PIE defined symbols from TargetMachine::shouldAssumeDSOLocal.
-
Fangrui Song authored
-
Lang Hames authored
-
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
TargetMachine::shouldAssumeDSOLocal currently implies dso_local for such definitions. Adding explicit dso_local makes these tests align with the clang -fno-pic behavior and allow the removal of the TargetMachine::shouldAssumeDSOLocal special case.
-
Fangrui Song authored
TargetMachine::shouldAssumeDSOLocal currently implies dso_local for such definitions. Adding explicit dso_local makes these tests align with the clang -fno-pic behavior and allow the removal of the TargetMachine::shouldAssumeDSOLocal special case. Split tiny_model.ll to tiny-model-{static,pic}.ll -
Fangrui Song authored
-
Fangrui Song authored
TargetMachine::shouldAssumeDSOLocal currently implies dso_local for such definitions. Adding explicit dso_local makes these tests align with the clang -fno-pic behavior and allow the removal of the TargetMachine::shouldAssumeDSOLocal special case.
-
Jacques Pienaar authored
Windows build bot was not happy with this (http://lab.llvm.org:8011/#/builders/13/builds/3327/steps/7/logs/FAIL__MLIR__run-reproducer_mlir)
-
Terry Wilmarth authored
This patch partially prepares the runtime source code to be built with -Wconversion, which should trigger warnings if any implicit conversions can possibly change a value. For builds done with icc or gcc, all such warnings are handled in this patch. clang gives a much longer list of warnings, particularly for sign conversions, which the other compilers don't report. The -Wconversion flag is commented into cmake files, but I'm not going to turn it on. If someone thinks it is important, and wants to fix all the clang warnings, they are welcome to. Types of changes made here involve either improving the consistency of types used so that no conversion is needed, or else performing careful explicit conversions, when we're sure a problem won't arise. Patch is a combination of changes by Terry Wilmarth and Johnny Peyton. Differential Revision: https://reviews.llvm.org/D92942
-
Brandon Bergren authored
Due to the unfortunate way the bug could only be triggered when reading SPRG[0-3] into a register lower than %r4 with the "mfsprg %rX, 0" syntax, the tests did not detect it. (It could not be triggered for "mfsprg0, %r2" because that pattern was already in the table, so the earlier "correct" match took effect) As a canary, add an intentionally ambiguous "mfsprg 2, 2" and "mtsprg 2, 2" check that would have caught the problem. Reviewed By: ZhangKang Differential Revision: https://reviews.llvm.org/D86489
-
Siva Chandra Reddy authored
This change "fixes" one of the uses that was missed in 0524da67.
-
Roman Lebedev authored
Fixes an issue reported by Peter Collingbourne in https://reviews.llvm.org/D91726#2475301
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Roman Lebedev authored
-
Craig Topper authored
[RISCV] Cleanup some V intrinsic names used in tests to match the type overloads used. Add some missing double tests on rv32. NFC The matching for intrinsic names is forgiving about types in the name being absent or wrong. Once the intrinsic is parsed its name will remangled to include the real types. This commit fixes the names to have at least enough correct types so that the name used in the test is a prefix of the canonical name. The big missing part is the type for the VL parameter which changes size between rv32 and rv64. While I was in here I noticed that we were missing some tests for double on rv32 so I fixed that by copying from rv64 and fixing up the VL argument type.
-
Fangrui Song authored
-
Sanjay Patel authored
I don't know if there's some way this changes what the vectorizers may produce for reductions, but I have added test coverage with 3567908d and 5ced712e to show that both passes already have bugs in this area. Hopefully this does not make things worse before we can really fix it.
-