Displaying 2 results from an estimated 2 matches for "incrementfaultsitecount".
2013 Aug 19
4
[LLVMdev] Generating GetElementPtr inlined in a function argument list programmatically
...([5 x i8]* @.str2, i32 0, i32 0))
C++ code:func("bleh");
However when I am generating bytecode programmatically, I can not have the GetElementPtr value "inlined" in the function argument list:
Bytecode:%bbname = getelementptr inbounds [29 x i8]* @bbname10, i32 0, i32 0call void @incrementFaultSiteCount(i8* %bbname, i32 2)
C++ code: (What I mean to generate)incrementFaultSiteCount("BBName", 2);
My question is:- What is this phenomenon called, is it called "inlined/expanded function argument"?- It seems the "inlined" GetElementPtr instruction is just more concise and s...
2013 Aug 19
0
[LLVMdev] Generating GetElementPtr inlined in a function argument list programmatically
...de:
> func("bleh");
>
> However when I am generating bytecode programmatically, I can not have the GetElementPtr value "inlined" in the function argument list:
>
> Bytecode:
> %bbname = getelementptr inbounds [29 x i8]* @bbname10, i32 0, i32 0
> call void @incrementFaultSiteCount(i8* %bbname, i32 2)
>
> C++ code: (What I mean to generate)
> incrementFaultSiteCount("BBName", 2);
>
> My question is:
> - What is this phenomenon called, is it called "inlined/expanded function argument"?
This is a constant expression cast. It will only hap...