[GC][NFC] Move GCStrategy from CodeGen to IR
authorMax Kazantsev <mkazantsev@azul.com>
Wed, 12 May 2021 07:36:24 +0000 (14:36 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Thu, 13 May 2021 05:31:59 +0000 (12:31 +0700)
commitd8b37de8a478c1b1532e45b0bfd82ecf1c964d9a
tree8f6ab39d7e6d0a884a79e44a9dbc10ec28d82bd8
parent2f21a272af69321555cdc2794664b5eba8fc3276
[GC][NFC] Move GCStrategy from CodeGen to IR

We want it to be available in analyzes so that we could use the
CodeGen notion in middle-end passes (for example, to check if
a GC may free some particular pointer).

This is a preparatory patch that simply moves the files around.

Note: if this causes some build issues, this patch must just be reverted.

Differential Revision: https://reviews.llvm.org/D100557
Reviewed By: reames
15 files changed:
llvm/include/llvm/CodeGen/GCMetadata.h
llvm/include/llvm/CodeGen/LinkAllAsmWriterComponents.h
llvm/include/llvm/CodeGen/LinkAllCodegenComponents.h
llvm/include/llvm/IR/BuiltinGCs.h [moved from llvm/include/llvm/CodeGen/BuiltinGCs.h with 89% similarity]
llvm/include/llvm/IR/GCStrategy.h [moved from llvm/include/llvm/CodeGen/GCStrategy.h with 98% similarity]
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/CodeGen/AsmPrinter/ErlangGCPrinter.cpp
llvm/lib/CodeGen/AsmPrinter/OcamlGCPrinter.cpp
llvm/lib/CodeGen/CMakeLists.txt
llvm/lib/CodeGen/GCMetadata.cpp
llvm/lib/CodeGen/GCRootLowering.cpp
llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
llvm/lib/IR/BuiltinGCs.cpp [moved from llvm/lib/CodeGen/BuiltinGCs.cpp with 98% similarity]
llvm/lib/IR/CMakeLists.txt
llvm/lib/IR/GCStrategy.cpp [moved from llvm/lib/CodeGen/GCStrategy.cpp with 94% similarity]