clang  3.7.0
Public Types | Public Member Functions | Public Attributes | List of all members
clang::CodeGen::LoopAttributes Struct Reference

Attributes that may be specified on loops. More...

#include <CGLoopInfo.h>

Collaboration diagram for clang::CodeGen::LoopAttributes:
[legend]

Public Types

enum  LVEnableState { VecUnspecified, VecEnable, VecDisable }
 Values of llvm.loop.vectorize.enable metadata. More...
 

Public Member Functions

 LoopAttributes (bool IsParallel=false)
 
void clear ()
 

Public Attributes

bool IsParallel
 Generate llvm.loop.parallel metadata for loads and stores. More...
 
LVEnableState VectorizerEnable
 llvm.loop.vectorize.enable More...
 
unsigned VectorizerWidth
 llvm.loop.vectorize.width More...
 
unsigned VectorizerUnroll
 llvm.loop.interleave.count More...
 

Detailed Description

Attributes that may be specified on loops.

Definition at line 35 of file CGLoopInfo.h.

Member Enumeration Documentation

Values of llvm.loop.vectorize.enable metadata.

Enumerator
VecUnspecified 
VecEnable 
VecDisable 

Definition at line 43 of file CGLoopInfo.h.

Constructor & Destructor Documentation

LoopAttributes::LoopAttributes ( bool  IsParallel = false)
explicit

Definition at line 65 of file CGLoopInfo.cpp.

Member Function Documentation

void LoopAttributes::clear ( )

Member Data Documentation

bool clang::CodeGen::LoopAttributes::IsParallel

Generate llvm.loop.parallel metadata for loads and stores.

Definition at line 40 of file CGLoopInfo.h.

Referenced by clear(), createMetadata(), clang::CodeGen::LoopInfoStack::getCurLoopParallel(), clang::CodeGen::LoopInfoStack::InsertHelper(), and clang::CodeGen::LoopInfoStack::setParallel().

LVEnableState clang::CodeGen::LoopAttributes::VectorizerEnable

llvm.loop.vectorize.enable

Definition at line 46 of file CGLoopInfo.h.

Referenced by clear(), createMetadata(), and clang::CodeGen::LoopInfoStack::setVectorizerEnable().

unsigned clang::CodeGen::LoopAttributes::VectorizerUnroll

llvm.loop.interleave.count

Definition at line 52 of file CGLoopInfo.h.

Referenced by clear(), createMetadata(), and clang::CodeGen::LoopInfoStack::setVectorizerUnroll().

unsigned clang::CodeGen::LoopAttributes::VectorizerWidth

llvm.loop.vectorize.width

Definition at line 49 of file CGLoopInfo.h.

Referenced by clear(), createMetadata(), and clang::CodeGen::LoopInfoStack::setVectorizerWidth().


The documentation for this struct was generated from the following files: