Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LLVM] Create LLVM scope object for use with LLVM libraries #12140

Merged
merged 7 commits into from
Aug 3, 2022
Merged

[LLVM] Create LLVM scope object for use with LLVM libraries #12140

merged 7 commits into from
Aug 3, 2022

Commits on Jul 20, 2022

  1. [LLVM] Create LLVM scope object for use with LLVM libraries

    This implements RFC 80. See apache/tvm-rfcs#83.
    
    Summary of changes:
    - Created an `LLVMScope` class. Uses of LLVM functions and data struc-
    tures should be contained within the lifetime of an object of this class.
    LLVMScope object contains LLVMContext, and implements member functions
    to deserialize an llvm::Module.
    - Created an `LLVMTarget` class. Once an LLVMScope object has been
    created, an object of LLVMTarget class can be created from TVM target
    string, or Target object for "llvm" target. Once LLVM command line flags
    are added to the "llvm" target, one of the goals of this object will be
    to save/restore relevant LLVM global state. Another objective for the
    LLVMTarget object is to be a single location for all LLVM-related
    compilation structures and options (such as TargetMachine, FastMathFlags,
    etc.)
    Krzysztof Parzyszek committed Jul 20, 2022
    Configuration menu
    Copy the full SHA
    33607c0 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2022

  1. Rename CodeGenLLVM::SetFastMathFlag to SetFastMathFlags, NFC

    Krzysztof Parzyszek committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    6bd9e46 View commit details
    Browse the repository at this point in the history
  2. Add doxygen documentation

    Move empty implementations of EnterWithScope/ExitWithScope to header
    since it helps see that these functions are only stubs.
    Krzysztof Parzyszek committed Jul 25, 2022
    Configuration menu
    Copy the full SHA
    257a188 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2022

  1. Merge branch 'main' into llvm-scope-target

    Krzysztof Parzyszek committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    479dd3b View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2022

  1. Change global std::string to const char*

    Krzysztof Parzyszek committed Jul 28, 2022
    Configuration menu
    Copy the full SHA
    6b1f1e2 View commit details
    Browse the repository at this point in the history

Commits on Aug 3, 2022

  1. LLVMScope -> LLVMInstance

    Krzysztof Parzyszek committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    5502144 View commit details
    Browse the repository at this point in the history
  2. Fix the header guard name

    Krzysztof Parzyszek committed Aug 3, 2022
    Configuration menu
    Copy the full SHA
    27e5be7 View commit details
    Browse the repository at this point in the history