<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Mar 15, 2013, at 5:18 PM, James Courtier-Dutton <<a href="mailto:james.dutton@gmail.com">james.dutton@gmail.com</a>> wrote:</div><br><blockquote type="cite"><p>Ok, maybe i asked the wrong question.<br>
Instead of using the value 12 all the way through the llvm ir text file. How do i use %friendlyName instead?<br>
I.e. The equivalent of something like<br>
#define FriendlyName  12<br>
in C<br>
</p></blockquote>You can make it a constant global:</div><div><br></div><div>@g = global i32 12, align 4</div><div><br></div><div><div>define i32 @foo() nounwind uwtable readonly ssp {</div><div>  %1 = load i32* @g, align 4</div><div>  ret i32 %1</div><div>}</div></div><div><br></div><div>-bw</div><div><br></div></body></html>