Displaying 2 results from an estimated 2 matches for "producevalu".
Did you mean:
producevalue
2013 May 14
2
[LLVMdev] Queue implementation is being trapped
...ion 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(producePtrValue)(int ch...
2013 May 14
0
[LLVMdev] Queue implementation is being trapped
...sonable 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*
>
> *
> *
&...