- Jul 10, 2020
-
-
Wei Mi authored
So that the function writeInstrProfile can be used in other places. Differential Revision: https://reviews.llvm.org/D83521
-
Stella Laurenzo authored
Summary: * Native '_mlir' extension module. * Python mlir/__init__.py trampoline module. * Lit test that checks a message. * Uses some cmake configurations that have worked for me in the past but likely needs further elaboration. Subscribers: mgorny, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, Kayjukh, jurahul, msifontes Tags: #mlir Differential Revision: https://reviews.llvm.org/D83279
-
Eli Friedman authored
This is currently bare-bones; we aren't taking advantage of any of the FMA variant instructions. But it's enough to at least generate code. Differential Revision: https://reviews.llvm.org/D83444
-
Eric Schweitz authored
-
peter klausler authored
Fix fronted shared library builds by eliminating dependences of the parser on other component libraries, moving some code around that wasn't in the right library, and making some dependences explicit in the CMakeLists.txt files. The lowering library does not yet build as a shared library due to some undefined names. Reviewed By: tskeith Differential Revision: https://reviews.llvm.org/D83515
-
Pete Steinfeld authored
Summary: When a program unit creates a generic based on one defined in a module, the function `CopyFrom()` is called to create the `GenericDetails`. This function copied the `specificProcs_` but failed to copy the `bindingNames_`. If the function `CheckGeneric()` then gets called, it tries to index into the empty binding names and causes the crash. I fixed this by adding code to `CopyFrom()` to copy the binding names. I also added a test that causes the crash. Reviewers: klausler, tskeith, DavidTruby Subscribers: llvm-commits Tags: #llvm, #flang Differential Revision: https://reviews.llvm.org/D83491
-
Amy Huang authored
Summary: -debug-info-kind=constructor reduces the amount of class debug info that is emitted; this patch switches to using this as the default. Constructor homing emits the complete type info for a class only when the constructor is emitted, so it is expected that there will be some classes that are not defined in the debug info anymore because they are never constructed, and we shouldn't need debug info for these classes. I compared the PDB files for clang, and there are 273 class types that are defined with `=limited` but not with `=constructor` (out of ~60,000 total class types). We've looked at a number of the types that are no longer defined with =constructor. The vast majority of cases are something like class A is used as a parameter in a member function of some other class B, which is emitted. But the function that uses class A is never called, and class A is never constructed, and therefore isn't emitted in the debug info. Bug: https://bugs.llvm.org/show_bug.cgi?id=46537 Subscribers: aprantl, cfe-commits, lldb-commits Tags: #clang, #lldb Differential Revision: https://reviews.llvm.org/D79147
-
Zequan Wu authored
Summary: bug reported here: https://bugs.llvm.org/show_bug.cgi?id=46660 Reviewers: vsk, efriedma, arphaman Reviewed By: vsk Subscribers: dexonsmith, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83514
-
Albion Fung authored
This patch adds the instruction definitions and the assembly/disassembly tests for the Load/Store VSX Vector Rightmose instructions. Differential Revision: https://reviews.llvm.org/D83364
-
Joel E. Denny authored
Document the default of `fail` in `-help`. Extend `-dump-input=help` to help users find related command-line options, but let `-help` provide their full documentation. Reviewed By: probinson Differential Revision: https://reviews.llvm.org/D83091
-
Craig Topper authored
This time without the change to make operator| use operator&=. That seems to be the source of the gcc 5.3 miscompile. Original commit message: These represent the same thing but 64BIT only showed up from getHostCPUFeatures providing a list of featuers to clang. While EM64T showed up from getting the features for a named CPU. EM64T didn't have a string specifically so it would not be passed up to clang when getting features for a named CPU. While 64bit needed a name since that's how it is index. Merge them by filtering 64bit out before sending features to clang for named CPUs.
-
Stanislav Mekhanoshin authored
This is practically NFC at the moment because nothing really asks the real number or does anything useful with it. Differential Revision: https://reviews.llvm.org/D82202
-
Sanjay Patel authored
-
Sanjay Patel authored
-
Sanjay Patel authored
-
Sanjay Patel authored
-
Sanjay Patel authored
-
Nikita Popov authored
Make it easier to debug renaming issues.
-
Roman Lebedev authored
This likely has broken test/Transforms/Attributor/IPConstantProp/ tests. http://45.33.8.238/linux/22502/step_12.txt This reverts commit 205dc092.
-
Eric Christopher authored
as it's causing build errors with another clang so I'll need to approach this differently. This reverts commit c2827083.
-
Eric Christopher authored
as it was failing in Release+Asserts mode with an assert. This reverts commit bd206803.
-
Fangrui Song authored
This reverts commit c92a8c0a. It breaks builds and has unaddressed review comments.
-
Giorgis Georgakoudis authored
Summary: Ignore callback uses when adding a callback function in the CallGraph. Callback functions are typically created when outlining, e.g. for OpenMP, so they have internal scope and linkage. They should not be added to the ExternalCallingNode since they are only callable by the specified caller function at creation time. A CGSCC pass, such as OpenMPOpt, may need to update the CallGraph by adding a new outlined callback function. Without ignoring callback uses, adding breaks CGSCC pass restrictions and results to a broken CallGraph. Reviewers: jdoerfert Subscribers: hiraditya, sstefan1, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83370
-
Roman Lebedev authored
Summary: This handles all three places where attributes could currently be - `GlobalVariable`, `Function` and `CallBase`. For last two, it correctly handles all three possible attribute locations (return value, arguments and function itself) There was a previous attempt at it D73853, which was committed in rGfc62b36a, but then reverted all the way back in rGb12176d2 due to some (osx?) test failures. Reviewers: nickdesaulniers, dblaikie, diegotf, george.burgess.iv, jdoerfert, Tyker, arsenm Reviewed By: nickdesaulniers Subscribers: wdng, MaskRay, arsenm, llvm-commits, mgorny Tags: #llvm Differential Revision: https://reviews.llvm.org/D83351
-
Roman Lebedev authored
Summary: As per lengthy/heated disscussion in D83351, and CodingStandards D83431. Reviewers: dblaikie, nickdesaulniers Reviewed By: nickdesaulniers Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83434
-
Roman Lebedev authored
Reviewers: nickdesaulniers, dblaikie Reviewed By: nickdesaulniers Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83435
-
Roman Lebedev authored
Summary: As per disscussion in D83351, using `for_each` is potentially confusing, at least in regards to inconsistent style (there's less than 100 `for_each` usages in LLVM, but ~100.000 `for` range-based loops Therefore, it should be avoided. Reviewers: dblaikie, nickdesaulniers Reviewed By: dblaikie, nickdesaulniers Subscribers: hubert.reinterpretcast, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83431
-
Roman Lebedev authored
And just after 3 days, we have a hit in `InstCombiner::mergeStoreIntoSuccessor()`: https://bugs.llvm.org/show_bug.cgi?id=46661 To be recommitted once that is addressed. This reverts commit cd7f8051.
-
Petr Hosek authored
This change adds the necessary flags for building the full Fuchsia toolchain on Windows with MSVC. Differential Revision: https://reviews.llvm.org/D73810
-
Zequan Wu authored
Reviewers: hans, chandlerc!, asbirlea, nikic Reviewed By: hans, nikic Subscribers: steven_wu, dexonsmith, nikic, echristo, void, zhizhouy, cfe-commits, aeubanks, MaskRay, jvesely, nhaehnle, hiraditya, kerbowa, llvm-commits Tags: #llvm, #clang Differential Revision: https://reviews.llvm.org/D83013
-
Christopher Tetreault authored
Reviewers: efriedma, fpetrogalli, sdesmalen, RKSimon, arsenm Reviewed By: RKSimon Subscribers: wdng, tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82210
-
Craig Topper authored
Follow up from the transform being removed in D83360. If X is probably not poison, then the transform is safe. Still plan to remove or adjust the code from ConstantFolding after this. Differential Revision: https://reviews.llvm.org/D83440
-
Louis Dionne authored
This reduces the set of substitutions required to run the test suite.
-
David Tenty authored
Summary: AIX uses an environment variable called OBJECT_MODE to indicate to utilities in the toolchain whether they should be operating in 32-bit or 64-bit mode. This patch makes the clang driver recognize the current OBJECT_MODE setting when we are operating with an AIX target and adds a custom diagnostic for invalid settings. For more details about OBJECT_MODE on AIX see: https://www.ibm.com/support/knowledgecenter/SSGH2K_13.1.3/com.ibm.xlc1313.aix.doc/compiler_ref/tusetenv1.html https://www.ibm.com/support/knowledgecenter/SSGH2K_13.1.3/com.ibm.xlc1313.aix.doc/compiler_ref/opt_3264.html Reviewers: stevewan, hubert.reinterpretcast, ShuhongL, jasonliu Reviewed By: hubert.reinterpretcast, jasonliu Subscribers: jasonliu, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D82476
-
Jeremy Bruestle authored
Reviewed By: bondhugula, flaub Differential Revision: https://reviews.llvm.org/D82600
-
Jan Korous authored
This assert was failing: assert(CAT && "unexpected type for array initializer"); until this patch landed: 9a7eda1b PR45350: Handle unsized array CXXConstructExprs in constant evaluation
-
Kyungwoo Lee authored
Differential Revision: https://reviews.llvm.org/D83456
-
Jonas Devlieghere authored
There are bugs where you don't want the signal handler to trigger, most notably when that will cause another crash. Examples of this are lldb running out of memory or a bug in the reproducer generation code. This adds an escape hatch trough a (developer oriented) flag to not install the signal handler. rdar://problem/65149595 Differential revision: https://reviews.llvm.org/D83496
-
Jonas Devlieghere authored
This is a preparatory rename of the developer facing reproducer flags. reproducer-skip-version-check -> reproducer-no-version-check reproducer-auto-generate -> reproducer-generate-on-quit
-