similar to: [LLVMdev] Structure declaration with IR builder

Displaying 20 results from an estimated 100 matches similar to: "[LLVMdev] Structure declaration with IR builder"

2013 Feb 01
0
[LLVMdev] Structure declaration with IR builder
Hi, I test your code and it works!!! but I didn't understand if "create a function" it necessary for my aims. What I tried to do is declare a structured to allow after declaration global or local structured variables. How I can I do? Thanks, Manuele Il 31/01/2013 10:14, Garba,Peter ha scritto: > Hi, > > that's what I'm doing ... > > //Init the struct type
2015 Dec 17
2
llvm-3.6 MCAsmParser x64 Error "invalid operand for instruction" when msb set
Hello, I am experiencing problems, when trying to assemble these two x86-64 Opcodes "add r64, imm32" "imul r64, r64, imm32" When having the most significant bit set for imm32, for example: "add rax, 0x80000000", "add rax, 0xffffffff", ... "imul rbx, rsi, 0x80000000", "imul rbx, rsi, 0xffffffff", ... The Error Message I receive is the
2008 Dec 23
2
[LLVMdev] ParseAssemblyString change of behaviour
Hi, when upgrading my compiler from LLVM 2.1 to 2.4 I stumbled upon a change of behaviour in ParseAssemblyString. For an interactive toplevel I am generating .ll source and feeding it into ParseAssemblyString like this: Module* parsedModule = ParseAssemblyString( code, targetModule, &errorInfo ); where targetModule is the module I expect all the LLVM code to go. Until 2.1 the
2019 Aug 13
2
Loop optimization
Thanks a lot for your help. Indeed if I compile with -OZ the loop gets replaced with something like this: if ( *v3 < 0 ) v4 = 0; Is there a reason why it does not get applied with O3 ? I mean this a huge improvement to the loop. -----Original Message----- From: Doerfert, Johannes [mailto:jdoerfert at anl.gov] Sent: Dienstag, 13. August 2019 19:13 To: llvm-dev at lists.llvm.org; Garba
2008 Dec 23
0
[LLVMdev] ParseAssemblyString change of behaviour
On Dec 23, 2008, at 7:15 AM, Jan Rehders wrote: > Hi, > > when upgrading my compiler from LLVM 2.1 to 2.4 I stumbled upon a > change of behaviour in ParseAssemblyString. For an interactive > toplevel I am generating .ll source and feeding it into > ParseAssemblyString like this: Hi Jan, I don't think that there is any intentional change here. It sounds like a bug.
2017 Apr 22
2
LLVM Optimizations strange behavior/bug
Hi, during a reverse engineering challenge I used clang/llvm optimizations to minimiz some code and I found some strange behavior that I can't reproduce with GCC or CL (visual studio compiler). The C code function contains some code that operates on a data array and an supplied password from ARGV. The compiled binary works as long as I don't activate any optimizations. When I activate
2019 Aug 13
2
Loop optimization
Hi, I was wondering if there is an optimization pass in LLVM or Polly that can optimize this given loop: int main(int argc, char* argv[]) { char s = 0; // Loop is setting s = argv[1][0]; for (int i=0; i<argv[1][0]; i++) { s++; } printf("s = %c\n", s); return 0; }
2019 Apr 27
2
Optimization Problem
Hi, I try to understand why llvm can't optimize this small piece of code. My expectation is that the IR will be optimized to a " ret i64 2101545. But somehow the alias analysis fails when the pointer is casted to an integer value, so the dead code eliminator can't optimize it away. Could someone explain to me why this is failing and if there is a solution for that ? I can trick the
2007 Jul 18
2
hist() Frequancy values
I have seen that the hist() function plots an histogram of the frequency but I cannot find the value of the object hist that contains theese values... how is possible to get out them? thank you very mutch best regards Manuele -- Manuele Pesenti manuele a inventati.org amicogodzilla a jabber.linux.it http://mpesenti.polito.it
2007 Jun 20
4
extract elements
Dear R users, just another little question... are there other ways, I mean more easy to write, to obtain the same result I got with: data[95:length(dati[,1]), ] where data is a data frame to extract the last elements starting from a fixed position? thank you very much best regards Manuele PEsenti -- Manuele Pesenti manuele a inventati.org amicogodzilla a jabber.linux.it
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
Hi Justin, my class is a visitor pattern and I use accept method to go recursive in suboject in my AST. In locals I store AllocaInst pointer. void *visit(var1_init_decl_c *symbol) { llvm::Type *lType; varNames.clear(); varType = ""; symbol->var1_list->accept(*this); /* get a vector contains variable names */ symbol->spec_init->accept(*this); /* Store in
2007 Jul 24
4
values from a linear model
Dear R users, how can I extrapolate values listed in the summary of an lm model but not directly available between object values such as the the standard errors of the calculated parameters? for example I got a model: mod <- lm(Crd ~ 1 + Week, data=data) and its summary: > summary(mod) Call: lm(formula = Crd ~ 1 + Week, data = data, model = TRUE, y = TRUE) Residuals: Min
2007 Jun 22
2
multiple return
Dear User, what's the correct way to obtain a multiple return from a function? for example creating the simple function: somma <- function (a, b) { c <- a+b return (a, b, c) } when I call it, it runs but returns the following output: > somma(5, 7) $a [1] 5 $b [1] 7 $c [1] 12 Warning message: return multi-argomento sono deprecati in: return(a, b, c) i.e. multi-return is
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
On Fri, Jan 11, 2013 at 8:20 AM, Manuele Conti <manuele.conti at sirius-es.it>wrote: > Hi Justin, > my class is a visitor pattern and I use accept method to go recursive in > suboject in my AST. > In locals I store AllocaInst pointer. > > > void *visit(var1_init_decl_c *symbol) { > llvm::Type *lType; > > varNames.clear(); > varType = "";
2007 May 21
1
question about forward library
Dear R User, I'm a new member of this list, I'm using R language from a short time and I would like to ask you something I cannot solve... I'm using the fwdlm function from the forward library, I'm specially interested by the results of Cook's distances: I'd want to know which inputs are the cause of peacks in Cook's distances plot; because what I find in abscisas
2007 Jun 20
2
add line to data.frame
Dear R user, how can I update a data.frame adding new lines? I need to create a second data frame from a first one with only some of their entrys filtering the value of a specific column... How can I do this? thankyou very much in advance best regards Manuele PEsenti -- Manuele Pesenti manuele a inventati.org amicogodzilla a jabber.linux.it http://mpesenti.polito.it
2013 Jan 11
2
[LLVMdev] Make a comparation with IR builder
Hi All, I'm writing a code generation with my compiler. I read sever example and documentation but I did understand what I make wrong. What I try to do is a compare a local variable with a constant. But when I create a ICMP instruction I get that instruction are not of same type. I'm using llvm by svn repository updated at two week ago. The code that I try to generation is something
2013 Jan 08
2
[LLVMdev] ExecutionEngine always comes back NULL
Sorry I forgot to add code that I use to run code: /* Executes the AST by running the main function */ GenericValue CodeGenContext::runCode() { std::cout << "Running code...\n"; ExecutionEngine *ee = EngineBuilder(module).create(); vector<GenericValue> noargs; GenericValue v = ee->runFunction(mainFunction, noargs); std::cout << "Code was run.\n"; return v;
2011 Apr 03
2
converting "call" objects into character
Dear all, I would like to log the calls to my functions. I am trying to do this using the function match.call(): fTest<-function(x) { theCall<-match.call() print(theCall) return(x) } > fTest(2) fTest(x = 2) [1] 2 I can see "theCall" printed into the console, but I don't manage to convert it into a character to write it into a log file
2013 Jan 11
0
[LLVMdev] Make a comparation with IR builder
you're not showing enough code. What does accept() do? Based on your description, I strongly suspect that your alloca and constant are not the same type. Remember that alloca returns a pointer type that you must load to get at the actual variable. On Jan 11, 2013 3:28 AM, "Manuele Conti" <manuele.conti at sirius-es.it> wrote: > Hi All, > I'm writing a code