[CSKY] Lower ISD::ConstantPool node to support getting the address of ConstantPool...
authorZi Xuan Wu (Zeson) <zixuan.wu@linux.alibaba.com>
Mon, 21 Nov 2022 01:33:09 +0000 (09:33 +0800)
committerZi Xuan Wu <zixuan.wu@linux.alibaba.com>
Mon, 21 Nov 2022 02:37:20 +0000 (10:37 +0800)
commitf4d61cdf9cc3a24d08fc0145a567a339ac347cdb
tree9da49b595ef12bd7e77b8c73353c8f1a858d4d61
parentc2ec455f183d88a63d3cffe23ca6ff1acf0d7d07
[CSKY] Lower ISD::ConstantPool node to support getting the address of ConstantPool entry

When there is not GRS or MOVIH/ORI instruction, we can not get the address of
ConstantPool entry directly. So we need put the address into ConstantPool to leverage CSKY::LRW instruction.
llvm/lib/Target/CSKY/CSKYAsmPrinter.cpp
llvm/lib/Target/CSKY/CSKYConstantIslandPass.cpp
llvm/lib/Target/CSKY/CSKYConstantPoolValue.cpp
llvm/lib/Target/CSKY/CSKYConstantPoolValue.h
llvm/lib/Target/CSKY/CSKYISelLowering.cpp
llvm/lib/Target/CSKY/CSKYISelLowering.h
llvm/lib/Target/CSKY/CSKYInstrInfo.td
llvm/lib/Target/CSKY/CSKYInstrInfo16Instr.td
llvm/test/CodeGen/CSKY/constantpool.ll [new file with mode: 0644]