This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly][NFC] Remove repetition of Defs = [ARGUMENTS]
ClosedPublic

Authored by tlively on Oct 10 2018, 10:23 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

tlively created this revision.Oct 10 2018, 10:23 AM

Thanks! By the way, if all of our instructions define ARGUMENTS, maybe we can put that def in WebAssemblyInst or NI, and delete all the annoying Defs = [ARGUMENTS] from all other *.td files..?

tlively updated this revision to Diff 169066.Oct 10 2018, 11:57 AM
  • Apply nice solution everywhere

Nice! Maybe we can change the CL title?

tlively retitled this revision from [WebAssembly] Make SIMD instrs def arguments like other instructions to [WebAssembly][NFC] Remove repetition of Defs = [ARGUMENTS].Oct 10 2018, 11:58 AM
tlively edited the summary of this revision. (Show Details)
aheejin added inline comments.Oct 10 2018, 12:11 PM
lib/Target/WebAssembly/WebAssemblyInstrFormats.td
55 ↗(On Diff #169066)

There seem to be some instructions that directly derive from not I but NI. Maybe we should put this in NI?

lib/Target/WebAssembly/WebAssemblyInstrInfo.td
168 ↗(On Diff #169066)

What's this Defs?

tlively updated this revision to Diff 169073.Oct 10 2018, 12:31 PM
tlively marked an inline comment as done.
  • Move from I to NI
tlively marked an inline comment as done.Oct 10 2018, 12:32 PM
tlively added inline comments.
lib/Target/WebAssembly/WebAssemblyInstrInfo.td
168 ↗(On Diff #169066)

An empty list (with type annotation to keep tablegen happy). AFAIK, ARGUMENT is the only class of instructions that should not have Defs = [ARGUMENTS], this line overrides the new default.

This revision is now accepted and ready to land.Oct 10 2018, 1:38 PM
This revision was automatically updated to reflect the committed changes.
tlively marked an inline comment as done.
NoQ added a subscriber: NoQ.Oct 11 2018, 12:09 PM

Could this commit have caused the buildbot failure in http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-expensive/12794/ ?

In D53093#1262406, @NoQ wrote:

Could this commit have caused the buildbot failure in http://green.lab.llvm.org/green/job/clang-stage1-cmake-RA-expensive/12794/ ?

Yes, this is the culprit. This commit has been reverted.