From c76e80ded753b78a72be0db40fcdba543435d818 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 1 Nov 2010 04:05:41 +0000 Subject: define a new CodeGenInstAlias. It has an asmstring and operand list for now, todo: the result field. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117894 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/CodeGenInstruction.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'utils/TableGen/CodeGenInstruction.cpp') diff --git a/utils/TableGen/CodeGenInstruction.cpp b/utils/TableGen/CodeGenInstruction.cpp index 5eceaeb015..8a05374d8c 100644 --- a/utils/TableGen/CodeGenInstruction.cpp +++ b/utils/TableGen/CodeGenInstruction.cpp @@ -382,3 +382,13 @@ FlattenAsmStringVariants(StringRef Cur, unsigned Variant) { return Res; } + +//===----------------------------------------------------------------------===// +/// CodeGenInstAlias Implementation +//===----------------------------------------------------------------------===// + +CodeGenInstAlias::CodeGenInstAlias(Record *R) : TheDef(R), Operands(R) { + AsmString = R->getValueAsString("AsmString"); + + +} -- cgit v1.2.3-70-g09d2