search for: buildopcode

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

2019 Jan 31
3
MachineIRBuilder API
...to what you get with DAG.getNode(). In the odd case you actually want the instruction, you could check the instruction before the insert point. Does anyone feel strongly that these functions should be returning the builder? What I would like to do is either replace and complete the current set of buildOpcode functions with ones which return the output register value, or add an alternative set which do. Is it worth having two sets of functions (a buildFoo and getFoo set?). The same issue applies with opcodes producing multiple results, such as buildUnmerge, but in that case I would probably change these...
2019 Jan 31
2
MachineIRBuilder API
...to what you get with DAG.getNode(). In the odd case you actually want the instruction, you could check the instruction before the insert point. Does anyone feel strongly that these functions should be returning the builder? What I would like to do is either replace and complete the current set of buildOpcode functions with ones which return the output register value, or add an alternative set which do. Is it worth having two sets of functions (a buildFoo and getFoo set?). The same issue applies with opcodes producing multiple results, such as buildUnmerge, but in that case I would probably change these...