Skip to content

Factor Dominators.cpp, Verifier.cpp and Pass* out of lib/LLVMCore #1166

Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 794
Resolution FIXED
Resolved on Feb 22, 2010 12:44
Version 1.0
OS All
Reporter LLVM Bugzilla Contributor

Extended Description

Not every user of lib/VMCore wants to run the verifier or use Passes. While
these facilities are common, they are not intrinsically part of the LLVM IR. In
particular, nothing in rest of lib/LLVMCore uses the Dominators classes other
than the Verifier using ET-Forest. The Pass.cpp and PassManagerT.h are
standalone and its only users in lib/VMCore are Verifier.cpp and AsmWriter.cpp,
both of which are targeted for factoring out of lib/VMCore.

It is suggested that the following changes be made:

  1. Move Pass.cpp and PassManagerT.h to a new library, lib/Pass
  2. Split ET-Forest stuff out of Dominators.h and Dominators.cpp and into its own
    module ETForest.h and ETForest.cpp. Not sure where this should live but it is
    used by the Verifier pass so could go where Verifier.cpp lives or perhaps
    in lib/Analysis.
  3. Move Dominators.cpp to lib/Analysis
  4. Move Verifier.cpp to lib/Analysis

This is the third in a set of enhancements to reduce the size of lib/VMCore.

Thoughts, ideas?

Reid.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions