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