Displaying 20 results from an estimated 400 matches similar to: "[LLVMdev] Fwd: Extending Kaleidoscope to support Strings"
2013 Apr 21
2
[LLVMdev] How to cast Value* to ConstantDataArray*
ConstantDataArray * cda = cast<ConstantDataArray>(v);
throws this error: Assertion failed: (isa<X>(Val) && "cast<Ty>() argument
of incompatible type!"), function cast, file
/Users/rcatlin1/lldb/llvm/include/llvm/Support/Casting.h, line 208
Thanks for the help.
Richard Catlin
On Sat, Apr 20, 2013 at 3:37 PM, Sean Silva <silvas at purdue.edu> wrote:
2013 Apr 20
0
[LLVMdev] How to cast Value* to ConstantDataArray*
On Sat, Apr 20, 2013 at 5:15 PM, Richard Catlin
<richard.m.catlin at gmail.com>wrote:
> I extended the LLVM Kaleidoscope example to support Strings. I added a
> StringExprAST, which has the virtual Codegen method impl as follows:
>
> Value *StringExprAST::Codegen() {
> StringRef r(Val);
> return ConstantDataArray::getString(getGlobalContext(), r, false);
> }
>
2013 Apr 20
2
[LLVMdev] How to cast Value* to ConstantDataArray*
I extended the LLVM Kaleidoscope example to support Strings. I added a
StringExprAST, which has the virtual Codegen method impl as follows:
Value *StringExprAST::Codegen() {
StringRef r(Val);
return ConstantDataArray::getString(getGlobalContext(), r, false);
}
I am trying to concatenate Strings and have a ConcatExprAST with its
Codegen method. Upon trying to access the data in the
2003 Sep 11
2
FAST_IPSEC doesn't seem to honor net.key.prefered_oldsa=0
When using the FAST_IPSEC option in the kernel build, the sysctl
variable net.key.prefered_oldsa seems to make no difference. The
kernel always chooses an old SA. This problem can be easily
reproduced. Just wait till the soft limit of the SA is expired and do
a setkey -F on the remote and then ping through the tunnel. Because
the old SA's are preferred and the remote no longer has the old
2011 Feb 12
2
[LLVMdev] conversion from 'const llvm::Value*' to 'llvm::Constant*'
Hi
Apolagize if this newbie question has some obvious answer. When running
something like
...
ExprAST *Init = GlobalNames[i].second;
const Value *InitVal;
InitVal = Init->Codegen();
GlobalVariable * globvar = new GlobalVariable(*TheModule,
InitVal->getType(), false, llvm::GlobalValue::ExternalLinkage, InitVal,
Twine(GlobalName));
...
I'm getting the following error
error: invalid
2011 Feb 13
3
[LLVMdev] conversion from 'const llvm::Value*' to 'llvm::Constant*'
Oh, I thought that after "codegening" cos(0) would get me double 1.0
(assigment is working for anything like: global a = 1/3 + 2 /3 for
example) What would be the best way to make assigments involving
functions, like global a = cos(0);
without getting the assertion arising from InitVal =
cast<Constant>(Init->Codegen()); ?
I made some changes and now my code basically works,
2011 Feb 13
2
[LLVMdev] conversion from 'const llvm::Value*' to 'llvm::Constant*'
Hi Duncan
Many many thanks, it works now!
But there are still some details I must be missing. I'm getting an assertion
when I try the following assignment in my script:
global c = cos(1);
Assertion failed: isa<X>(Val) && "cast<Ty>() argument of incompatible
type!", file c:/llvm-source-2.7/include/llvm/Support/Casting.h, line 200
However, running for example
2010 Jul 07
1
[LLVMdev] Alloca and GlobalVariable
I just added support for arrays to the front-end for a trading-specific DSL that I'm implementing using LLVM and ran into a minor bump.
Internally, I have been treating variables the same whether they end up being GlobalVariables or stack variables allocated with Alloca. I store the Value* I get from CreateAlloca or the Value* I get when I create a new GlobalVariable into my symbol table when
2012 Nov 10
2
[LLVMdev] Forward references of globals in .ll files
I'm experiencing a weird issue during .ll file parsing, and I'm not sure if
it's a bug in the .ll parser, or if I'm just not understanding the IR.
Take the following IR:
@a = addrspace(1) global i8 0
@a2 = global i8 addrspace(1)* @a
This parses fine. But if I rearrange the statements to:
@a2 = global i8 addrspace(1)* @a
@a = addrspace(1) global i8 0
then I get an ugly
2012 Nov 10
0
[LLVMdev] Forward references of globals in .ll files
On Fri, Nov 9, 2012 at 5:01 PM, Justin Holewinski
<justin.holewinski at gmail.com> wrote:
> I'm experiencing a weird issue during .ll file parsing, and I'm not sure if
> it's a bug in the .ll parser, or if I'm just not understanding the IR.
>
> Take the following IR:
>
> @a = addrspace(1) global i8 0
> @a2 = global i8 addrspace(1)* @a
>
> This
2002 Mar 14
1
mdct.c
Hi vorbis-dev,
I'm investigating the mdct* function in libvorbis and writing a small
client program to test it. I found that I have to set ARRAYSIZE when
mdct_init(lookup, ARRAYSIZE) to minimum value of 62 otherwise it will
segfault with mdct_backward.
Is there any lower limit or it is more likely that my code has bug?
Thank you very much,
Pattara
--
Please avoid sending me Word or
2013 Aug 28
1
[LLVMdev] Casting and intrinsic function calls
Hello,
I am attempting to use llvm casting and intrinsic functions to do basic operations on Value pointers. I have read the online documentation and relevant portions of the source code and wrote the following code to do a Float to Double cast and then a log operation-
Value *castFP(Value *i, Type *ty) const { return b->CreateFPCast(i, ty, n); } \\b is an IRBuilder and TheModule is an
2012 Aug 30
2
[PATCH 01/11] vmci_context.patch: VMCI context list operations.
Signed-off-by: George Zhang <georgezhang at vmware.com>
---
drivers/misc/vmw_vmci/vmci_context.c | 1245 ++++++++++++++++++++++++++++++++++
drivers/misc/vmw_vmci/vmci_context.h | 174 +++++
2 files changed, 1419 insertions(+), 0 deletions(-)
create mode 100644 drivers/misc/vmw_vmci/vmci_context.c
create mode 100644 drivers/misc/vmw_vmci/vmci_context.h
diff --git
2012 Aug 30
2
[PATCH 01/11] vmci_context.patch: VMCI context list operations.
Signed-off-by: George Zhang <georgezhang at vmware.com>
---
drivers/misc/vmw_vmci/vmci_context.c | 1245 ++++++++++++++++++++++++++++++++++
drivers/misc/vmw_vmci/vmci_context.h | 174 +++++
2 files changed, 1419 insertions(+), 0 deletions(-)
create mode 100644 drivers/misc/vmw_vmci/vmci_context.c
create mode 100644 drivers/misc/vmw_vmci/vmci_context.h
diff --git
2012 Nov 10
2
[LLVMdev] Forward references of globals in .ll files
Does not work and same error even on old r157485 build.
- D.
2012/11/10 Eli Friedman <eli.friedman at gmail.com>:
> On Fri, Nov 9, 2012 at 5:01 PM, Justin Holewinski
> <justin.holewinski at gmail.com> wrote:
>> I'm experiencing a weird issue during .ll file parsing, and I'm not sure if
>> it's a bug in the .ll parser, or if I'm just not understanding
2012 Sep 09
1
Error msg in rpanel
I am working on the r panel package. Now if i have a function that uses a
radiogroup button, and if i attempt to run the function from inside the
rpanel menu, i get this error:
Error in panel$intname : $ operator is invalid for atomic vectors
However if i run the function per se i.e. not from inside the rpanel
menu, but by calling it independently, the above error doesn't appear.
Here is a
2010 Jul 16
0
[LLVMdev] Tool for run-time code generation?
----- Original Message ----
> From: David Piepgrass <dpiepgrass at mentoreng.com>
> To: Samuel Crow <samuraileumas at yahoo.com>
> Sent: Fri, July 16, 2010 2:48:10 PM
> Subject: RE: [LLVMdev] Tool for run-time code generation?
>
> WinCE offers most of the standard C APIs (such as malloc), as well as most
>standard C++ libraries including, I think, the same STL
2010 Jul 16
2
[LLVMdev] Tool for run-time code generation?
> Have you ever tried running a dynamically allocated code that cannot
> execute
> malloc() or any runtime libraries or library-based functions because
> they haven't been ported to your architecture? That's what it would
> be like trying to run ARM Linux code on your WinCE target. Windows CE
> requires an LLVM port before it will be useful to you. Put simply,
2013 Nov 10
1
[LLVMdev] about creating the first value of the storeinst
Dear All
I'm trying to create storeInst using
StoreInst *SI = new StoreInst(val, AI, BB);
AI is an alloca instruction previously created, BB is the basicBlock I want to put instructionsi in. Val is the value to store.
I've created val from a genericValue like this:
Value* val = ConstantInt::get(getGlobalContext(), Result.IntVal);
Result is the genericValue
However I keep getting
2023 Dec 05
3
[Bug 1726] New: invalid json generated by ipset list -output json
https://bugzilla.netfilter.org/show_bug.cgi?id=1726
Bug ID: 1726
Summary: invalid json generated by ipset list -output json
Product: ipset
Version: unspecified
Hardware: x86_64
OS: Debian GNU/Linux
Status: NEW
Severity: trivial
Priority: P5
Component: default
Assignee: