search for: llvmgettargetdescript

Displaying 3 results from an estimated 3 matches for "llvmgettargetdescript".

2013 May 14
1
[LLVMdev] [llvm-c]
...t; // get first target >> Target := LLVMGetFirstTarget; >> >> // loop until the target is NULL >> while (Target <> nil) do >> begin >> // get target name & description >> TargetName := LLVMGetTargetName(Target); >> TargetDescription := LLVMGetTargetDescription(Target); >> >> // do something with these information >> >> Target := LLVMGetNextTarget(Target); >> end; >> > I don't see any obvious problems here, though someone else might. > What exactly is the problem you are seeing? Is LLVMGetFirstTarget &...
2013 May 11
2
[LLVMdev] [llvm-c]
...; // initialize native target in particular LLVMInitializeNativeTarget; // get first target Target := LLVMGetFirstTarget; // loop until the target is NULL while (Target <> nil) do begin // get target name & description TargetName := LLVMGetTargetName(Target); TargetDescription := LLVMGetTargetDescription(Target); // do something with these information Target := LLVMGetNextTarget(Target); end; By debugging the LLVM library (a custom DLL, which works fine otherwise), I can see that there is no information, but I'm not that deep into C and the LLVM structure to identify what went wrong....
2013 May 13
0
[LLVMdev] [llvm-c]
...nitializeNativeTarget; > > // get first target > Target := LLVMGetFirstTarget; > > // loop until the target is NULL > while (Target <> nil) do > begin > // get target name & description > TargetName := LLVMGetTargetName(Target); > TargetDescription := LLVMGetTargetDescription(Target); > > // do something with these information > > Target := LLVMGetNextTarget(Target); > end; > I don't see any obvious problems here, though someone else might. What exactly is the problem you are seeing? Is LLVMGetFirstTarget returning NULL? You may want t...