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

TOSA legalization clean up and rewrite for consistency #49243

Merged
merged 2 commits into from
May 20, 2021

Commits on May 14, 2021

  1. TOSA legalization clean up and rewrite for consistency

    1. use llvm::SmallVector<T> if N is not known at compile time, otherwise use llvm::SmallVector<T,N>.
    2. use llvm::SmallVectorImpl<T> as utility function signature.
    3. remove unnecessary ArrayRef<T>() cast and replace it with llvm::makeArrayRef() instead if needed.
    4. rename get1DConstTensor() into getConstTensor()
    5. getConstTensor() is not able to generate TFL::ConstOp now.
    6. getConstTensor() can generates N-D constant now.
    
    Signed-off-by: Kevin Cheng <kevin.cheng@arm.com>
    Change-Id: Icbd48dcde2ba4b1c1e0e0b74d8f6baae08f78bd0
    armkevincheng committed May 14, 2021
    Configuration menu
    Copy the full SHA
    b1cb9be View commit details
    Browse the repository at this point in the history

Commits on May 17, 2021

  1. Configuration menu
    Copy the full SHA
    d225b8c View commit details
    Browse the repository at this point in the history