Displaying 2 results from an estimated 2 matches for "typed_nam".
Did you mean:
typed_name
2013 May 14
2
[LLVMdev] Queue implementation is being trapped
...weird function renaming.
So, to easily wrapper the class, I wrote a queue_wrapper.h library, which,
basically, has the following code (where Q is a reference to my queue, and
the channel is not really important):
*extern "C" { *
*#ifdef INT_TYPE*
* void __attribute__((noinline))*
* TYPED_NAME(produceValue)(int channel, TYPE elem)*
* {Q->addElement (channel, (long)elem);}*
*
*
* TYPE __attribute__((noinline))*
* TYPED_NAME(consumeValue)(int channel)*
* {return (TYPE) Q->removeElement (channel);}*
*#endif*
*
*
* void __attribute__((noinline))*
* TYPED_NAME(producePtr...
2013 May 14
0
[LLVMdev] Queue implementation is being trapped
...pletely reasonable output for me, with...
struct q {
void addElement(int, char);
char removeElement(int);
void addPtrElement(int, void*);
void *removePtrElement(int);
} *Q;
> *extern "C" { *
>
> *#ifdef INT_TYPE*
>
> * void __attribute__((noinline))*
>
> * TYPED_NAME(produceValue)(int channel, TYPE elem)*
>
> * {Q->addElement (channel, (long)elem);}*
>
> *
> *
>
> * TYPE __attribute__((noinline))*
>
> * TYPED_NAME(consumeValue)(int channel)*
>
> * {return (TYPE) Q->removeElement (channel);}*
>
> *#endif*
>
&g...