clang API Documentation

Public Types | Public Member Functions | Public Attributes
clang::CodeGen::LoopAttributes Struct Reference

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

#include <CGLoopInfo.h>

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

List of all members.

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.
LVEnableState VectorizerEnable
 llvm.loop.vectorize.enable
unsigned VectorizerWidth
 llvm.loop.vectorize.width
unsigned VectorizerUnroll
 llvm.loop.interleave.count

Detailed Description

Attributes that may be specified on loops.

Definition at line 33 of file CGLoopInfo.h.


Member Enumeration Documentation

Values of llvm.loop.vectorize.enable metadata.

Enumerator:
VecUnspecified 
VecEnable 
VecDisable 

Definition at line 41 of file CGLoopInfo.h.


Constructor & Destructor Documentation

LoopAttributes::LoopAttributes ( bool  IsParallel = false) [explicit]

Definition at line 66 of file CGLoopInfo.cpp.


Member Function Documentation


Member Data Documentation

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

Definition at line 38 of file CGLoopInfo.h.

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

llvm.loop.vectorize.enable

Definition at line 44 of file CGLoopInfo.h.

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

llvm.loop.interleave.count

Definition at line 50 of file CGLoopInfo.h.

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

llvm.loop.vectorize.width

Definition at line 47 of file CGLoopInfo.h.

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


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