search for: instructionhandl

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

Did you mean: instructionhandle
2008 Apr 23
2
[LLVMdev] templates vs code to generate IR
...to the appropriate string. Using ANTLR, this is particularly easy /** Match things like print "hi"; */ printStat : 'print' STRING ';' -> println(s={$STRING.text}) ; Now compare that to what you would have to do using Java code to create a data structure: InstructionHandle start = il.append(factory.createFieldAccess("java.lang.System", "out", p_stream, Constants.GETSTATIC)); il.append(new PUSH(cp, "Hello")); il.append(factory.createInvoke("java.io.Prin...
2008 Apr 24
0
[LLVMdev] templates vs code to generate IR
...is particularly easy > > /** Match things like print "hi"; */ > printStat > : 'print' STRING ';' -> println(s={$STRING.text}) > ; > > Now compare that to what you would have to do using Java code to > create a data structure: > > InstructionHandle start = > il.append(factory.createFieldAccess("java.lang.System", "out", > p_stream, > Constants.GETSTATIC)); > il.append(new PUSH(cp, "Hello")); > il.append(factory.createInv...