Displaying 20 results from an estimated 200 matches similar to: "[LLVMdev] Calling dispatch_async() within call to ExecutionEngine::runFunction()"
2013 Jan 30
0
[LLVMdev] Calling dispatch_async() within call to ExecutionEngine::runFunction()
I have used libdispatch (on FreeBSD) from JIT'd code without any issues, so I think your bug is elsewhere.
David
On 30 Jan 2013, at 07:43, Rick Mann wrote:
> My host app calls runFunction() on my JITed code. It, in turn, calls a C function ("decode()") in the host app that then calls dispatch_async(). The runFunction() call returns as expected, but the block passed to
2011 Jun 20
3
[LLVMdev] C struct as function argument
I've been working on a wrapper for LLVM's C++ API to use from Objective-C for a scripting language I'm working on. I currently have an issue with passing arguments to a function that takes a struct argument.
typedef struct _test_struct {
int x;
int y;
} test_struct;
id testLLVMStructFuncCall(test_struct x) {
NSLog(@"%d %d",x.x,x.y);
return N(x.x + x.y);
}
2013 Jan 20
2
[LLVMdev] Clang's approach to anonymous struct pointer parameters
For the following code:
struct XBeePacket;
typedef void (*CompletionProc)(XBeePacket* inPacket, void* inParam2);
struct
XBeePacket
{
bool mField1;
CompletionProc mCompletionProc;
};
Why does clang emit this IR?
%struct.XBeePacket = type { i8, {}* }
define void
@MyCompletionProc(%struct.XBeePacket* %inPacket, i8*
2013 Jan 20
0
[LLVMdev] Clang's approach to anonymous struct pointer parameters
Hi Rick,
this is a bug in Clang's LLVM-IR code generator:
http://llvm.org/bugs/show_bug.cgi?id=14920
Best,
Florian
On Sunday, January 20, 2013 01:57:37 Rick Mann wrote:
> For the following code:
>
> struct XBeePacket;
>
> typedef void (*CompletionProc)(XBeePacket* inPacket, void* inParam2);
>
> struct
> XBeePacket
> {
>
2011 Jun 02
1
Any tips for speeding up encoding on iPhone?
Hi,
I'm trying to use Speex for real time encoding in an iPhone project but I'm
having latency problems. I appreciate any tips you may provide for speeding
things up.
The recording callback is providing 1024 samples (mono, frequency: 44100 Hz,
of type short) every 23 ms (1024.0 / 44100.0). I'm saving the samples in a
buffer and use them in the encoding thread (set for mode: wide
2013 Jan 24
2
[LLVMdev] What would cause instructions to NOT make it into the module?
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Sean Silva
> Subject: Re: [LLVMdev] What would cause instructions to NOT make it into the module?
> It is a pass that can be run like any other pass. See createVerifierPass().
You can also just call verifyModule() with the appropriate parameters; it's defined in
2015 Apr 08
2
[LLVMdev] __sync_add_and_fetch in objc block for global variable on ARM
Hello community,
I faced with bug in multithread environment in objective C code which using dispatch_async and block,
__sync_add_and_fetch increments global variable. But in case of many..many threads> 5, after every
__sync_add_and_fetch got damaged
...
int32_t count = 0;
...
int
main(int argc, char *argv[])
{
for (i = 1; i < 32; ++i) {
...
char* name;
2009 Jan 27
4
[LLVMdev] RFC: -fwritable-strings Change
There is a problem with Objective-C code where a null string is placed
in the wrong section. If we have this code:
#include <Foundation/Foundation.h>
void foo() {
NSLog(@"");
}
The null string is defined like this:
.const
.lcomm LC,1,0 ## LC
Causing our linker to go nuts, because it expects anonymous strings to
be in the __cstring section. I came up with the attached
2009 Oct 19
3
[LLVMdev] Objective-C code in lli
Hi,
Is it possible to run Objective-C code in lli? lli does not seem to
want to load Foundation.framework.
Please see below.
Thanks,
Eric Brunstad
#import <Foundation/Foundation.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog(@"test!");
[pool drain];
return EXIT_SUCCESS;
}
cmu-351714:llvm-2.5 ericbrunstad$
2009 Jan 27
0
[LLVMdev] RFC: -fwritable-strings Change
On Jan 26, 2009, at 4:07 PMPST, Bill Wendling wrote:
> There is a problem with Objective-C code where a null string is placed
> in the wrong section. If we have this code:
>
> #include <Foundation/Foundation.h>
> void foo() {
> NSLog(@"");
> }
>
> The null string is defined like this:
>
> .const
> .lcomm LC,1,0 ## LC
>
> Causing our
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
> > > >>>>> On 10/16/2016 11:16 PM, Pierre Jaury wrote:
> > > >>>>>> Hello,
> > > >>>>>>
> > > >>>>>> I am using a dict proxy for my sieve extdata plugin to access some
> > > >>>>>> fields from an SQLite database (autoreply text and other
> > >
2016 Oct 16
2
Dict proxy client returning empty string instead of multiline string
Hello,
I am using a dict proxy for my sieve extdata plugin to access some
fields from an SQLite database (autoreply text and other
database-configured items).
All tests are performed against version 2.2.25.
$ dovecot --version
2.2.25 (7be1766)
My configuration looks like:
dict {
sieve = sqlite:/etc/dovecot/pigeonhole-sieve.dict
}
[...]
sieve_extdata_dict_uri = proxy::sieve
I
2009 Oct 19
0
[LLVMdev] Objective-C code in lli
On Oct 18, 2009, at 6:32 PM, Eric Brunstad wrote:
> Hi,
>
> Is it possible to run Objective-C code in lli? lli does not seem to
> want to load Foundation.framework.
It is definitely possible, but we're not there yet. LLI would have to
know about objective-c metadata to register it properly with the
runtime. This is important for things like classes etc. This isn't
2011 Apr 21
1
[LLVMdev] A problem from XCode 4 - help sought tracking it down
Sorry if this isn't the right place; but I'm facing an XCode 4 (LLVM 2.0
to Apple, I heard it's LLVM 2.9 under the hood) issue that may involve
LLVM, and maybe some people on this list could help me short-circuit the
source.
I have a code pattern that, when used in XCode 4 in Objective C++ files,
causes the whole IDE to go crash. It is a stripped sample to highlight
the issue.
In
2009 Oct 19
1
[LLVMdev] Objective-C code in lli
Hi,
What would be an estimate for the amount of work required to implement
this? Where would I get started if I were to implement it?
My goal is to run Objective-C programs in the interpreter so I can
provide an application-sandbox by disallowing the invocation of
certain C-functions and also by disallowing the invocation of certain
Objective-C methods.
Thanks,
Eric
On Oct 19, 2009,
2016 Sep 26
4
objc object file generated for gnustep runtime for ELF target is too big
Dear community,
I'm using gnustep runtime -fobjc-runtime=gnustep with gnustep-libobjc2 (https://github.com/gnustep/libobjc2) and
Cocotron/Chameleon.
For following source file
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
int main(void)
{
NSString *str = [NSString stringWithCString:"TEST"];
2008 Apr 12
0
[LLVMdev] Bitwidth analysis?
We have a bitwidth analysis that can be downloaded. It is not in LLVM.
There should be a link in the paper:
http://www.cs.utah.edu/~regehr/papers/pldi075-cooprider.pdf
John Regehr
2007 Jul 19
2
[LLVMdev] Trouble Resolving Objective-C Symbols in lli
Hi there, I'm trying to run trivial Objective-C code that uses the
Foundation framework under MacOS X in lli. It seems that the code will
compile and
run using llc, however fails to work in lli.
SimpleFoundation.m:
----
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// insert code
2016 Oct 17
2
Dict proxy client returning empty string instead of multiline string
Hi!
This does sound like a bug, we'll have look.
Aki
On 17.10.2016 01:26, Pierre Jaury wrote:
> I dived a little bit further into the rabbit hole, up to the point where
> debugging has become unpracticle but I still haven't found the root
> cause for sure.
>
> I read most of the code for "p_strdup" based on datastack memory pools
> (which are used for
2010 Aug 12
0
[LLVMdev] LLVM-C: Calling functions contained in other libraries
On Aug 12, 2010, at 10:43 AM, F van der Meeren wrote:
> Where am I going wrong here?
>
Did you link against the library that contains the function?
-eric