search for: createfieldaccess

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

2008 Apr 23
2
[LLVMdev] templates vs code to generate IR
...s 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.PrintStream", "print",...
2008 Apr 24
0
[LLVMdev] templates vs code to generate IR
...ke 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.PrintStream", "print&quo...