search for: asmfrag

Displaying 6 results from an estimated 6 matches for "asmfrag".

2013 Sep 09
2
[LLVMdev] TableGen and computed expressions
...e to be able to provide this value using a function call ( e.g. 'getLatency()'), or some other externally computed value. For the mnemonics I was wondering if it is possible to provide a fragment to 'strconcat' from a function call, or perhaps from an array with an index (e.g. 'AsmFrag[VALUE]')? I have tried variants of '[{ code }]' but this does not seem to work for me. I would like to avoid a wholesale replication of 100s of instruction patterns that really only differ in minute ways; are there any recommended ways of doing this type of thing with TableGen? Thank...
2013 Sep 22
0
[LLVMdev] TableGen and computed expressions
...e to be able to provide this value using a function call ( e.g. 'getLatency()'), or some other externally computed value. For the mnemonics I was wondering if it is possible to provide a fragment to 'strconcat' from a function call, or perhaps from an array with an index (e.g. 'AsmFrag[VALUE]')? I have tried variants of '[{ code }]' but this does not seem to work for me. I would like to avoid a wholesale replication of 100s of instruction patterns that really only differ in minute ways; are there any recommended ways of doing this type of thing with TableGen? Thank...
2013 Sep 29
2
[LLVMdev] Tblgen and computed expressions
...e to be able to provide this value using a function call ( e.g. 'getLatency()'), or some other externally computed value. For the mnemonics I was wondering if it is possible to provide a fragment to 'strconcat' from a function call, or perhaps from an array with an index (e.g. 'AsmFrag[VALUE]')? I have tried variants of '[{ code }]' but this does not seem to work for me. I would like to avoid a wholesale replication of 100s of instruction patterns that really only differ in minute ways; are there any recommended ways of doing this type of thing with TableGen? Thank...
2013 Sep 27
1
[LLVMdev] TableGen and computed expressions
...e to be able to provide this value using a function call ( e.g. 'getLatency()'), or some other externally computed value. For the mnemonics I was wondering if it is possible to provide a fragment to 'strconcat' from a function call, or perhaps from an array with an index (e.g. 'AsmFrag[VALUE]')? I have tried variants of '[{ code }]' but this does not seem to work for me. I would like to avoid a wholesale replication of 100s of instruction patterns that really only differ in minute ways; are there any recommended ways of doing this type of thing with TableGen? Thank...
2013 Oct 01
0
[LLVMdev] Tblgen and computed expressions
...e to be able to provide this value using a function call ( e.g. 'getLatency()'), or some other externally computed value. For the mnemonics I was wondering if it is possible to provide a fragment to 'strconcat' from a function call, or perhaps from an array with an index (e.g. 'AsmFrag[VALUE]')? I have tried variants of '[{ code }]' but this does not seem to work for me. I would like to avoid a wholesale replication of 100s of instruction patterns that really only differ in minute ways; are there any recommended ways of doing this type of thing with TableGen? Thank...
2013 Apr 23
4
[LLVMdev] [PATCH] Handle tied sub-operands in AsmMatcherEmitter
...that are trivially matchable as a plain literal token. When printing, however, we need to know that they’re part of the more generalized operand. My current thinking on this is that each complex operand would have an MIOperandInfo specifying the raw operands (just like now), but would also have an AsmFragment (name could probably stand some wordsmithing…) attribute which describes how to print the operand. The asm matcher code in tablegen can use these strings to flatten the assembler string used for both printing and matching from this, yet we still have the extra semantic information that this sub...