This is an archive of the discontinued LLVM Phabricator instance.

[Xtensa 6/10] Add Xtensa basic assembler parser.
ClosedPublic

Authored by andreisfr on Jul 16 2019, 3:23 PM.

Details

Summary

Currently parse just described in *.td files Xtensa instructions and operands subsets.

Diff Detail

Event Timeline

andreisfr created this revision.Jul 16 2019, 3:23 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 16 2019, 3:23 PM
andreisfr updated this revision to Diff 242222.Feb 3 2020, 3:23 PM

Patch is updated according to latest upstream version. Updated licenses.

andreisfr updated this revision to Diff 328698.EditedMar 5 2021, 4:46 PM

Patch is updated according to LLVM upstream version and latest Xtensa backend version.

andreisfr updated this revision to Diff 335955.Apr 7 2021, 4:54 PM

The llvm_unreachable is substituted to report_fatal_error

Patch is updated according to LLVM upstream version.

bero added a subscriber: bero.Apr 14 2022, 2:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2022, 2:00 PM
andreisfr updated this revision to Diff 425075.Apr 25 2022, 5:16 PM

Patch is updated according to LLVM upstream version

saugustine accepted this revision.Aug 23 2022, 3:27 PM
saugustine added a subscriber: saugustine.

All very basic and straightforward. Not much to go wrong here.

This revision is now accepted and ready to land.Aug 23 2022, 3:27 PM
phosek added a subscriber: phosek.Sep 1 2022, 11:43 AM

Hi everyone. Since this has been accepted for some time now, we're planning to commit this on Monday (December 16th). Please let us know if there is anything else we should address.

barannikov88 added inline comments.
llvm/lib/Target/Xtensa/AsmParser/CMakeLists.txt
2

Should not be necessary.

18

Isn't this dependency implicit already?

llvm/lib/Target/Xtensa/AsmParser/XtensaAsmParser.cpp
307

(nit) extra parentheses.

351

Is it EndLoc < StartLoc? Why don't just use .getLoc(), .getEndLoc() on register name token?

andreisfr updated this revision to Diff 485251.Dec 25 2022, 4:30 PM

Added fixes according to comments

andreisfr added inline comments.Dec 25 2022, 4:32 PM
llvm/lib/Target/Xtensa/AsmParser/CMakeLists.txt
2

Fixed

18

I think yes, I removed it.

llvm/lib/Target/Xtensa/AsmParser/XtensaAsmParser.cpp
307

Fixed

351

Fixed

barannikov88 accepted this revision.Dec 25 2022, 5:32 PM
This revision was landed with ongoing or failed builds.Dec 26 2022, 4:39 AM
This revision was automatically updated to reflect the committed changes.