Speclib  0.1.2
The library for writing better CUDA libraries
sp::TensorFlatteningTrampoline< T > Struct Template Referencefinal

A trampoline struct you can use as a Specialiser target to easily chain TensorFlatten with the default specialisers. More...

#include <TensorFlatteningTrampoline.hpp>

Inherits T.

Static Public Member Functions

template<typename... Args>
static void run (Args &&... args)
 

Detailed Description

template<typename T>
struct sp::TensorFlatteningTrampoline< T >

A trampoline struct you can use as a Specialiser target to easily chain TensorFlatten with the default specialisers.

Tensor flattening works best after other specialisers, so a useful thing to do is to fire the default specialisers at TensorFlatteningTrampoline<YourActualSpecialisationTarget>.

This inherits from T (the eventual target type) so it will inherit the same specialisation pruning fields as T, preventing unnecessary codegen.