24 #ifndef ACLELEMENTIFELSE_H
25 #define ACLELEMENTIFELSE_H
27 #include "../aclElementBase.h"
34 class ElementIfElse:
public ElementBase
48 vector<Element> & localDeclarations)
const;
virtual string getLocalDeclaration(const KernelConfiguration &kernelConfig) const
vector< Element > expressionIf
virtual void setAsArgument(cl::Kernel &kernel, unsigned int argumentIndex) const
virtual string str(const KernelConfiguration &kernelConfig) const
virtual string getTypeSignature(const KernelConfiguration &kernelConfig) const
void addBodyExpressionIf(Element expression_)
virtual void addToKernelSource(vector< Element > &arguments, vector< Element > &localDeclarations) const
vector< Element > expressionElse
void addBodyExpressionElse(Element expression_)
ElementIfElse(Element condition_)
virtual string getName() const
ACL Kernel configuration class.
Class interface for cl_kernel.
Advanced Computational Language.
std::shared_ptr< ElementBase > Element