- Nov 08, 2017
-
-
Alex Bradbury authored
rL162640 introduced CodeGenTarget::guessInstructionProperties. If a target sets guessInstructionProperties=0 in its FooInstrInfo, tablegen will error if it has to guess properties from patterns. Unfortunately, guessInstructionProperties=0 can't be used with current upstream LLVM as instructions in the TargetOpcode namespace are always included and sometimes have inferred properties for mayLoad, mayStore, and hasSideEffects. This patch provides the simplest possible fix to this problem, setting default values for these fields in the TargetOpcode scope. There is no intended functional change, as the explicitly set properties should match what was previously inferred. A number of the instructions had hasSideEffects=1 inferred unintentionally. This patch makes it explicit, while future patches (such as D37097) correct the property. Differential Revision: https://reviews.llvm.org/D37065 llvm-svn: 317674
-
Sam McCall authored
llvm-svn: 317673
-
Haojian Wu authored
Summary: Prototype of a new rename rule for renaming qualified symbol. Reviewers: arphaman, ioeric, sammccall Reviewed By: arphaman, sammccall Subscribers: jklaehn, cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D39332 llvm-svn: 317672
-
Matt Arsenault authored
Some of the AMDGPU stack addressing modes require knowing the sign bit is zero. We used to accomplish this by custom lowering frame indexes, and then putting an AssertZext around a TargetFrameIndex. This required specifically looking for the AssextZext + frame index pattern which was moderately disgusting. The same could probably be accomplished with a target specific node, but would still require special handling of frame indexes. llvm-svn: 317671
-
Sam McCall authored
Summary: This is (probably) not required by LSP, but at least one buggy client wants it. It also simplifies some tests - changed a few completion tests to use -pretty. Reviewers: hokein, malaperle Subscribers: ilya-biryukov, cfe-commits Differential Revision: https://reviews.llvm.org/D39738 llvm-svn: 317670
-
Martin Storsjo authored
I never ran into this until lld-link started enabling debug output by default for the mingw mode. I haven't been able to verify that this actually behaves correctly, but this relocation is handled identically on all other architectures so far. Differential Revision: https://reviews.llvm.org/D39754 llvm-svn: 317669
-
Sylvestre Ledru authored
Summary: Sufficiently old Linux kernel headers don't provide the PR_SET_PTRACER, but we can still call prctl with it if the runtime kernel is newer. Even if it's not, prctl will only return EINVAL. Patch by Mike Hommey <mh-llvm@glandium.org> Reviewers: eugenis Reviewed By: eugenis Subscribers: sylvestre.ledru, cfe-commits, kubamracek Differential Revision: https://reviews.llvm.org/D39717 llvm-svn: 317668
-
Serguei Katkov authored
Revert the patch r317665 causing buildbot failures. llvm-svn: 317667
-
Serguei Katkov authored
This patch enables the folding of address computation in memory instruction in case adress is represented by Phi node. The inputs of Phi node might be different in base register. Differential Revision: https://reviews.llvm.org/D36073 llvm-svn: 317665
-
Craig Topper authored
This ensures that only immediates that fit in 8-bits are used. This matches what we do for the unmasked versions. llvm-svn: 317664
-
Rui Ueyama authored
I think the constract of this function is to remove a file in some way, whether in background or in foreground. This patch makes sure that it removes a given file. Differential Revision: https://reviews.llvm.org/D39778 llvm-svn: 317663
-
Craig Topper authored
[X86] Add patterns to fold EVEX store with EVEX encoded vcvtps2ph instructions. Remove bad pattern that had vf432 vcvtps2ph storing 128-bits. llvm-svn: 317662
-
Craig Topper authored
[X86] Allow legacy vcvtps2ph intrinsics to select EVEX encoded instructions. Rely on EVEX->VEX to convert back. Missed store folding opportunities will be fixed in a subsequent commit. llvm-svn: 317661
-
Rafael Espindola authored
llvm-svn: 317657
-
Rafael Espindola authored
llvm-svn: 317656
-
Reid Kleckner authored
This reverts commit r317604. Android doesn't have cpu_set_t. llvm-svn: 317655
-
Dave Lee authored
This reverts commit r317646. llvm-svn: 317654
-
Rafael Espindola authored
llvm-svn: 317651
-
Rafael Espindola authored
llvm-svn: 317650
-
Rafael Espindola authored
llvm-svn: 317649
-
Eugene Zelenko authored
[Serialization] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). llvm-svn: 317648
-
David Blaikie authored
This header includes CodeGen headers, and is not, itself, included by any Target headers, so move it into CodeGen to match the layering of its implementation. llvm-svn: 317647
-
Dave Lee authored
Summary: This change allows yaml input to control the order of implicitly added sections (`.symtab`, `.strtab`, `.shstrtab`). The order is controlled by adding a placeholder section of the given name to the Sections field. This change is to support changes in D39582, where it is desirable to control the location of the `.dynsym` section. This reapplied version fixes: 1. use of a function call within an assert 2. failing lld test which has an unnamed section Additionally, one more test to cover the unnamed section failure. Reviewers: compnerd, jakehehrlich Reviewed By: jakehehrlich Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39749 llvm-svn: 317646
-
Matt Arsenault authored
llvm-svn: 317645
-
Eugene Zelenko authored
llvm-svn: 317644
-
Douglas Yung authored
llvm-svn: 317642
-
Mitch Phillips authored
The implemented pass fails and is breaking a large number of unit tests. Example: http://lab.llvm.org:8011/builders/clang-with-lto-ubuntu/builds/5777/steps/build-stage3-compiler/logs/stdio This reverts commit rL317618 llvm-svn: 317641
-
Evgeniy Stepanov authored
Summary: These will be used in an ifunc resolver, when the binary may not be completely relocated, and syscall() function from libc could not be used. Reviewers: dvyukov, vitalybuka Subscribers: aemerson, kubamracek, javed.absar, llvm-commits, kristof.beyls Differential Revision: https://reviews.llvm.org/D39701 llvm-svn: 317640
-
Sriraman Tallam authored
Differential Revision: https://reviews.llvm.org/D39625 llvm-svn: 317639
-
Evgeniy Stepanov authored
Future change will introduce GetMaxVirtualAddress that will not take the kernel area into account. llvm-svn: 317638
-
Rafael Espindola authored
llvm-svn: 317637
-
Jonathan Peyton authored
1) Get rid of xaliasify, xexpand and xversionify for KMP_EXPAND_NAME and KMP_VERSION_SYMBOL. KMP_VERSION_SYMBOL is a combination of xaliasify and xversionify. 2) Put all attribute and __declspec definitions in kmp_os.h Differential Revision: https://reviews.llvm.org/D39516 llvm-svn: 317636
-
Bob Haarman authored
Summary: __safe_se_handler_base should be either absolute 0 (when no SafeSEH table is present), or relative to the image base (when the table is present). An earlier change inadvertedly made the symbol absolute in both cases, leading to the SafeSEH table not being locatble at run time. This change fixes that and updates the safeseh test to check for the presence of the relocation. Reviewers: rnk, ruiu Reviewed By: ruiu Subscribers: ruiu, llvm-commits Differential Revision: https://reviews.llvm.org/D39765 llvm-svn: 317635
-
Paul Robinson authored
llvm-svn: 317634
-
Rafael Espindola authored
llvm-svn: 317633
-
Rafael Espindola authored
Now that this code is posix only we don't need to use runBackground. llvm-svn: 317632
-
Rafael Espindola authored
It used to rename the file before removing it in a background thread. A simpler way to delay the removal is simply to open the file. Since this is a posix specific issue, simplify the windows implementation. llvm-svn: 317631
-
Dave Lee authored
Also, revert "Fix build bots after r317622" This reverts commit r317622, r317626. llvm-svn: 317630
-
Paul Robinson authored
llvm-svn: 317628
-
Sriraman Tallam authored
Differential Revision: https://reviews.llvm.org/D39759 llvm-svn: 317627
-