search for: argint

Displaying 4 results from an estimated 4 matches for "argint".

Did you mean: argent
2013 Feb 11
2
[LLVMdev] metadata as function arguments
Hi, I am trying to write a Pass that reads metadata passed as a argument to a function. I have written them by hand in the .s file in the same way of the IR reference (http://llvm.org/docs/LangRef.html#named-metadata) : define i32 @function(i32 %argInt, metadata !3) nounwind {entry: %argInt.addr = alloca i32, align 4 store i32 %argInt, i32* %argInt.addr, align 4 %1 = load i32* %argInt.addr, align 4 %add = add nsw i32 %1, 1 ret i32 %add} !3 = metadata !{metadata !"metadata text"} but when I run my pass with opt on the .s file I get...
2013 Feb 11
0
[LLVMdev] metadata as function arguments
...mail.it> wrote: > Hi, I am trying to write a Pass that reads metadata passed as a argument to > a function. > > I have written them by hand in the .s file in the same way of the IR > reference (http://llvm.org/docs/LangRef.html#named-metadata) : > > define i32 @function(i32 %argInt, metadata !3) nounwind { This seems wrong. "metadata" is a type (like i32), and the exclamation mark is only used to refer to metadata nodes, not to declare functions with them. Eli
2013 Feb 11
2
[LLVMdev] metadata as function arguments
> > I have written them by hand in the .s file in the same way of the IR > > reference (http://llvm.org/docs/LangRef.html#named-metadata) : > > > > define i32 @function(i32 %argInt, metadata !3) nounwind { > > This seems wrong. "metadata" is a type (like i32), and the exclamation > mark is only used to refer to metadata nodes, not to declare functions > with them. I'm only interested in attaching a metadata string to a function with wirtten its pre...
2013 Feb 11
0
[LLVMdev] metadata as function arguments
.... On 11 February 2013 22:58, Niko Zarzani <koni10 at hotmail.it> wrote: > > > I have written them by hand in the .s file in the same way of the IR > > > reference (http://llvm.org/docs/LangRef.html#named-metadata) : > > > > > > define i32 @function(i32 %argInt, metadata !3) nounwind { > > > > This seems wrong. "metadata" is a type (like i32), and the exclamation > > mark is only used to refer to metadata nodes, not to declare functions > > with them. > > I'm only interested in attaching a metadata string to a f...