[all-commits] [llvm/llvm-project] 3610d5: [LoongArch] Add initial support for function calls

wangleiat via All-commits all-commits at lists.llvm.org
Mon Jul 4 21:03:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3610d5f5d4c21d514e2a900620ed8260b0d25ad8
      https://github.com/llvm/llvm-project/commit/3610d5f5d4c21d514e2a900620ed8260b0d25ad8
  Author: wanglei <wanglei at loongson.cn>
  Date:   2022-07-05 (Tue, 05 Jul 2022)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchFrameLowering.h
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.h
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.cpp
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.h
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    M llvm/lib/Target/LoongArch/LoongArchRegisterInfo.cpp
    A llvm/test/CodeGen/LoongArch/ir-instruction/call.ll

  Log Message:
  -----------
  [LoongArch] Add initial support for function calls

Note that this is just enough for simple function call examples to
generate working code.

A good portion of this patch is the extra functions that needed to be
implemented to support the test case. e.g. storeRegToStackSlot,
loadRegFromStackSlot, eliminateFrameIndex.

Differential Revision: https://reviews.llvm.org/D128429




More information about the All-commits mailing list