Class LlvmLifter


  • public final class LlvmLifter
    extends Object
    Entry point for lifting textual LLVM IR back to YABR SSA IR, inverting LlvmLowering.
    • Constructor Detail

      • LlvmLifter

        public LlvmLifter()
    • Method Detail

      • lift

        public IRMethod lift​(String llvmModuleText)
        Lifts the first define function found in llvmModuleText.
        Parameters:
        llvmModuleText - the textual LLVM IR module
        Returns:
        the first function as an IRMethod
        Throws:
        LlvmLiftException - if the module defines no function
      • liftModule

        public List<IRMethod> liftModule​(String llvmModuleText)
        Lifts all define functions in llvmModuleText and returns them in order.
        Parameters:
        llvmModuleText - the textual LLVM IR module
        Returns:
        one IRMethod per function, empty if the module defines none