Page MenuHomePhabricator

[CSKY 5/n] Add support for all CSKY basic integer instructions except for branch series
Needs ReviewPublic

Authored by zixuan-wu on Jan 4 2021, 12:17 AM.

Details

Summary

This patch adds basic CSKY integer instructions except for branch series such as bsr, br.
It mainly includes basic ALU, load & store, compare and data move instructions.

Branch series instructions need handle complex symbol operand as following patch later.

Diff Detail

Event Timeline

zixuan-wu created this revision.Jan 4 2021, 12:17 AM
zixuan-wu requested review of this revision.Jan 4 2021, 12:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 4 2021, 12:17 AM

Can you also link patch 1~3 as the related revisions as well?

llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
498

(typo) registe -> register

llvm/lib/Target/CSKY/CSKYInstrFormats.td
407

Is the imm here still pcode?

zixuan-wu added inline comments.Jan 21 2021, 1:08 AM
llvm/lib/Target/CSKY/CSKYInstrFormats.td
407

Yep, the imm is encoded as constant statically.