search for: my_literal

Displaying 2 results from an estimated 2 matches for "my_literal".

Did you mean: __literal
2011 Aug 09
3
[LLVMdev] Adding a module in a pass
...FunctionPass(ID), myModule("my_module", getGlobalContext()) {} I generate an llvm.global_ctor global variable in my module, and I add my global constructors there. This appears to be correct. Here is a dump of the module after the pass: ; ModuleID = 'my_module' @my_literal = internal constant [6 x i8] c"Hello\00" @llvm.global_ctors = appending global [1 x { i32, void ()* }] [void () { i32 65535, void ()* @my_global_constructor }] define void @my_global_constructor() { %puts = call i32 @puts(i8* getelementptr inbounds ([6 x i8]* @my_literal, i3...
2011 Aug 09
0
[LLVMdev] Adding a module in a pass
...dule", getGlobalContext()) > {} > > I generate an llvm.global_ctor global variable in my module, and I add > my global constructors there. This appears to be correct. Here is a > dump of the module after the pass: > > ; ModuleID = 'my_module' > > @my_literal = internal constant [6 x i8] c"Hello\00" > @llvm.global_ctors = appending global [1 x { i32, void ()* }] [void > () { i32 65535, void ()* @my_global_constructor }] > > define void @my_global_constructor() { > %puts = call i32 @puts(i8* getelementptr inbounds (...