search for: stringconstant

Displaying 12 results from an estimated 12 matches for "stringconstant".

Did you mean: string_constant
2010 Jan 11
0
[LLVMdev] Operations on constant array value?
Does the C API have an equivalent of stack storage? Via the C++ APIs one can shove the string constant on the stack via a store instruction operation on an alloca instruction--the address needed is the alloca. For example: llvm::Value* stringVar = builder.CreateAlloca(stringConstant->getType()); builder.CreateStore(stringConstant, stringVar); The stringVar is your address. Garrison On Jan 11, 2010, at 10:07, James Williams wrote: > Hi, > > I've read http://llvm.org/docs/LangRef.html#t_array and http://llvm.org/docs/GetElementPtr.html and if I've unders...
2010 Jan 11
4
[LLVMdev] Operations on constant array value?
Hi, I've read http://llvm.org/docs/LangRef.html#t_array and http://llvm.org/docs/GetElementPtr.html and if I've understood right there are no operations that act directly on arrays - instead I need to use getelementptr on a pointer to an array to get a pointer to an array element. I also understand that there is no 'address of' operation. As a result I can't figure out how to
2011 Sep 22
3
[LLVMdev] Need help in converting int to double
Hi, I'm pursuing M.Tech course. As a part of the project work i'm using LLVM as back-end. My project area is "Enhancing the performance of V8 javascript engine using LLVM as a back-end". Now i'm writing code for shift left(SHL) operator. I had my own Value Structure .. it's like this Struct Value { void *val ; char type; } The "char type" holds
2011 Sep 22
2
[LLVMdev] Need help in converting int to double
On Thu, Sep 22, 2011 at 3:46 PM, sarath chandra <sarathcse19 at gmail.com>wrote: > Hi James, > > First i converted the void * to int* and then did FPToSI...then did SHL...( > because CreateShl only accepts integers... i pointer casted it to int64 type > first)... Below is the code snippet.... > > > lhs = mBuilder.CreateStructGEP(firstArg, 0); > lhs =
2011 Sep 22
0
[LLVMdev] FW: Need help in converting int to double
Re-cc'ing list. Please direct all responses to the mailing list, so others can see it! Cheers, James -----Original Message----- From: James Molloy Sent: 22 September 2011 11:11 To: 'sarath chandra' Subject: RE: [LLVMdev] Need help in converting int to double Hi Sarath, Your example will break. If the values are held internally as doubles casted to void* (which incidentally will
2011 Sep 22
0
[LLVMdev] Need help in converting int to double
Hi Sarath, It would have really helped if you had removed the commented out code and inlined the calls to your homemade helper functions before sending it... You are doing this, in LLVM IR: %0 = getelementptr %Value* %firstArg, i32 0 ; i8** %1 = load i8** %0 ; i8* %2 = bitcast i8* %1 to i64* %3 = getelementptr %Value* %secondArg, i32 0 ; i8** %4 = load i8** %3; i8* %5 = bitcast i8* %4 to i64*
2011 Sep 22
1
[LLVMdev] Need help in converting int to double
Yeah, that's the fault...got the answer...... Thanks James for the help... Struggling with this for so many days....... On Thu, Sep 22, 2011 at 4:02 PM, James Molloy <James.Molloy at arm.com> wrote: > Hi Sarath,**** > > ** ** > > It would have really helped if you had removed the commented out code and > inlined the calls to your homemade helper functions before
2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
...1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': - case '-': + case '-': return LexDigitOrNegative(); } } @@ -254,11 +254,11 @@ int LLLexer::LexAt() { // Handle AtStringConstant: @\"[^\"]*\" if (CurPtr[0] == '"') { ++CurPtr; - + while (1) { int CurChar = getNextChar(); - - if (CurChar == EOF) { + + if (CurChar == EOF) { GenerateError("End of file in global variable name"); return...
2006 Jan 11
4
[LLVMdev] Re: [llvm-commits] CVS: llvm/lib/AsmParser/Lexer.cpp Lexer.l
...warning: this is the location of the previous definition llvmAsmParser.tab.h:294:1: warning: "LABELSTR" redefined /home/wanderer/pkg/build/llvm/src/llvm/lib/AsmParser/llvmAsmParser.h:150:1: warning: this is the location of the previous definition llvmAsmParser.tab.h:295:1: warning: "STRINGCONSTANT" redefined /home/wanderer/pkg/build/llvm/src/llvm/lib/AsmParser/llvmAsmParser.h:151:1: warning: this is the location of the previous definition llvmAsmParser.tab.h:296:1: warning: "IMPLEMENTATION" redefined /home/wanderer/pkg/build/llvm/src/llvm/lib/AsmParser/llvmAsmParser.h:152:1:...
2006 Jan 11
0
[LLVMdev] Re: [llvm-commits] CVS: llvm/lib/AsmParser/Lexer.cpp Lexer.l
...location of the previous definition > llvmAsmParser.tab.h:294:1: warning: "LABELSTR" redefined > /home/wanderer/pkg/build/llvm/src/llvm/lib/AsmParser/llvmAsmParser.h:150:1: > warning: this is the location of the previous definition > llvmAsmParser.tab.h:295:1: warning: "STRINGCONSTANT" redefined > /home/wanderer/pkg/build/llvm/src/llvm/lib/AsmParser/llvmAsmParser.h:151:1: > warning: this is the location of the previous definition > llvmAsmParser.tab.h:296:1: warning: "IMPLEMENTATION" redefined > /home/wanderer/pkg/build/llvm/src/llvm/lib/AsmParser/llv...
2006 Jan 11
1
[LLVMdev] Re: [llvm-commits] CVS: llvm/lib/AsmParser/Lexer.cpp Lexer.l
...previous definition >> llvmAsmParser.tab.h:294:1: warning: "LABELSTR" redefined >> /home/wanderer/pkg/build/llvm/src/llvm/lib/AsmParser/llvmAsmParser.h:150:1: >> warning: this is the location of the previous definition >> llvmAsmParser.tab.h:295:1: warning: "STRINGCONSTANT" redefined >> /home/wanderer/pkg/build/llvm/src/llvm/lib/AsmParser/llvmAsmParser.h:151:1: >> warning: this is the location of the previous definition >> llvmAsmParser.tab.h:296:1: warning: "IMPLEMENTATION" redefined >> /home/wanderer/pkg/build/llvm/src/llvm/l...
2006 Jan 11
1
[LLVMdev] Re: [llvm-commits] CVS: llvm/lib/AsmParser/Lexer.cpp Lexer.l
...vious definition > > llvmAsmParser.tab.h:294:1: warning: "LABELSTR" redefined > > /home/wanderer/pkg/build/llvm/src/llvm/lib/AsmParser/llvmAsmParser.h:150:1: > > warning: this is the location of the previous definition > > llvmAsmParser.tab.h:295:1: warning: "STRINGCONSTANT" redefined > > /home/wanderer/pkg/build/llvm/src/llvm/lib/AsmParser/llvmAsmParser.h:151:1: > > warning: this is the location of the previous definition > > llvmAsmParser.tab.h:296:1: warning: "IMPLEMENTATION" redefined > > /home/wanderer/pkg/build/llvm/src/ll...