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.
Paths
| Differential D100557
[GC][NFC] Move GCStrategy from CodeGen to IR ClosedPublic Authored by mkazantsev on Apr 15 2021, 6:49 AM.
Details Summary We want it to be available in analyzes so that we could use the This is a preparatory patch that simply moves the files around.
Diff Detail Event Timelinemkazantsev added a child revision: D100559: [GC][NFC] Make getGCStrategy by name available in IR.Apr 15 2021, 6:52 AM mkazantsev retitled this revision from [GC][NFC] Move GCStrategy from CodeGen to Analysis to [GC][NFC] Move GCStrategy from CodeGen to IR. Comment Actions Max, thank for you doing this. I think this is a really good idea. I had tried this once before and ran into trouble with the build bots. Have you built this with both static and dynamic build modes? I forget which one bit me last time, but we had to revert for some reason. You can probably find the reverting commit by looking at history. I vaguely remember the problem being something about the registery mechanism and circular build dependencies, but its been a very long time since I've thought about this. If you can confirm that problem no longer exists, this will be an easy LGTM.
Comment Actions No idea how to check this. I'll better start with getting rid of these static initializers which look like unneeded complication. mkazantsev planned changes to this revision. Comment ActionsPlanning to do this, need to address Philip's concern. Comment Actions I made a default build and dynamic build with options -DLLVM_BUILD_LLVM_DYLIB=On -DLLVM_LINK_LLVM_DYLIB=On And also clang&polly build with these options. All of them passed make check tests. So I hope it should work. Let's try it out. Comment Actions LGTM Please wait several days after landing this before landing follow up changes. I'm half expecting we'll have to revert. This revision is now accepted and ready to land.May 12 2021, 8:03 AM This revision was landed with ongoing or failed builds.May 12 2021, 10:32 PM Closed by commit rGd8b37de8a478: [GC][NFC] Move GCStrategy from CodeGen to IR (authored by mkazantsev). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 337994 llvm/include/llvm/CodeGen/GCMetadata.h
llvm/include/llvm/CodeGen/LinkAllAsmWriterComponents.h
llvm/include/llvm/CodeGen/LinkAllCodegenComponents.h
llvm/include/llvm/IR/BuiltinGCs.h
llvm/include/llvm/IR/GCStrategy.h
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
llvm/lib/IR/CMakeLists.txt
llvm/lib/IR/GCStrategy.cpp
|
clang-format: please reformat the code