search for: queue_wrapp

Displaying 2 results from an estimated 2 matches for "queue_wrapp".

Did you mean: queue_wrapper
2013 May 14
2
[LLVMdev] Queue implementation is being trapped
...I'm trying to use the functions defined on my queue class inside some llvm-ir code. Unfortunately, the names of the functions are being messed up, then I created some function wrappers just to avoid having to deal with the C++ 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...
2013 May 14
0
[LLVMdev] Queue implementation is being trapped
...ers just to avoid having to deal with the C++ weird function renaming. > FYI, this "weird function renaming" is traditionally called "name mangling" :) What frontend are you using? Clang or g++ w/dragonegg or something else? > 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): > The problem is probably in the definition of your queue itself. The code below generates completely reasonable output for me, with... struct q { vo...