Displaying 4 results from an estimated 4 matches for "commentdelimit".
Did you mean:
commentdelimiter
2018 Jan 04
1
InstAlias with tied operands - can it be supported?
...100644
--- a/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/utils/TableGen/AsmMatcherEmitter.cpp
@@ -1526,7 +1526,7 @@ void AsmMatcherInfo::buildInfo() {
II->initialize(*this, SingletonRegisters, Variant,
HasMnemonicFirst);
// Validate the alias definitions.
- II->validate(CommentDelimiter, false);
+ II->validate(CommentDelimiter, true);
Matchables.push_back(std::move(II));
}
On 2017-12-15 03:40, Daniel Sanders wrote:
> Hi,
>
> On Instructions you can use checkEarlyTargetMatchPredicate() to check
> that the operands are the same. There's a...
2017 Dec 15
0
InstAlias with tied operands - can it be supported?
Hi,
On Instructions you can use checkEarlyTargetMatchPredicate() to check that the operands are the same. There's an example of that in MipsAsmParser.cpp for DATI and DAHI. I can't think of a reason TableGen couldn't be made to allow this for InstAlias too.
> On 15 Dec 2017, at 02:12, via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hello,
>
> InstAlias
2017 Dec 15
2
InstAlias with tied operands - can it be supported?
Hello,
InstAlias does not allow tied operands (repeated operands) in the asm
string to be matched.
It seems this situation is explicitly prevented in
AsmMatcherEmitter.cpp:
if (!Hack)
PrintFatalError(TheDef->getLoc(),
"ERROR: matchable with tied operand '" + Tok +
"' can never be matched!");
2012 Jul 16
3
[LLVMdev] RFC: LLVM incubation, or requirements for committing new backends
...===//
> +def AMDILAsmWriter : AsmWriter {
> + string AsmWriterClassName = "AsmPrinter";
> + int Variant = 0;
> +}
> +
> +def AMDILAsmParser : AsmParser {
> + string AsmParserClassName = "AsmParser";
> + int Variant = 0;
> +
> + string CommentDelimiter = ";";
> +
> + string RegisterPrefix = "r";
> +
> +}
> +
> +
> +def AMDIL : Target {
> + // Pull in Instruction Info:
> + let InstructionSet = AMDILInstrInfo;
> + let AssemblyWriters = [AMDILAsmWriter];
> + let AssemblyParsers = [AMDILAs...