class VPlanTestBase

Declaration

class VPlanTestBase : public Test { /* full declaration omitted */ };

Description

Helper class to create a module from an assembly string and VPlans for a given loop entry block.

Declared at: llvm/unittests/Transforms/Vectorize/VPlanTestBase.h:27

Inherits from: Test

Member Variables

protected std::unique_ptr<LLVMContext> Ctx
protected std::unique_ptr<Module> M
protected std::unique_ptr<LoopInfo> LI
protected std::unique_ptr<DominatorTree> DT

Method Overview

Methods

VPlanTestBase()

Declared at: llvm/unittests/Transforms/Vectorize/VPlanTestBase.h:34

llvm::VPlanPtr buildHCFG(
    llvm::BasicBlock* LoopHeader)

Declared at: llvm/unittests/Transforms/Vectorize/VPlanTestBase.h:48

Parameters

llvm::BasicBlock* LoopHeader

llvm::VPlanPtr buildPlainCFG(
    llvm::BasicBlock* LoopHeader)

Description

Build the VPlan plain CFG for the loop starting from \p LoopHeader.

Declared at: llvm/unittests/Transforms/Vectorize/VPlanTestBase.h:58

Parameters

llvm::BasicBlock* LoopHeader

void doAnalysis(llvm::Function& F)

Declared at: llvm/unittests/Transforms/Vectorize/VPlanTestBase.h:43

Parameters

llvm::Function& F

llvm::Module& parseModule(
    const char* ModuleString)

Declared at: llvm/unittests/Transforms/Vectorize/VPlanTestBase.h:36

Parameters

const char* ModuleString