[PATCH] D122366: [LoongArch] Construct codegen infra and generate first add instruction.

wangei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 23 18:36:24 PDT 2022


wangleiat created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
wangleiat requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This patch constructs codegen infra and successfully generate the first
'add' instruction. Add integer calling convention for fixed arguments which
are passed with general-purpose registers.

New test added here:

  CodeGen/LoongArch/ir-instruction/add.ll

The test file is placed in a subdirectory because we will use
subdirctories to distinguish different categories of tests (e.g.
 intrinsic, inline-asm ...)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122366

Files:
  llvm/lib/Target/LoongArch/LoongArch.h
  llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
  llvm/lib/Target/LoongArch/LoongArchISelLowering.h
  llvm/lib/Target/LoongArch/LoongArchInstrFormats.td
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.h
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
  llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
  llvm/test/CodeGen/LoongArch/ir-instruction/add.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122366.417804.patch
Type: text/x-patch
Size: 13515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220324/7a9931c7/attachment.bin>


More information about the llvm-commits mailing list