diff options
author | Chris Lattner <sabre@nondot.org> | 2011-04-17 22:05:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-04-17 22:05:17 +0000 |
commit | 7ed1391ff66012e4963081cfb20b6166e8784f50 (patch) | |
tree | 5daca144fdadefe1c48e3479be81a0a96b35659b /utils/TableGen/Record.h | |
parent | 543790673c747ab2793fc657e239ce5f78419dc0 (diff) | |
download | external_llvm-7ed1391ff66012e4963081cfb20b6166e8784f50.zip external_llvm-7ed1391ff66012e4963081cfb20b6166e8784f50.tar.gz external_llvm-7ed1391ff66012e4963081cfb20b6166e8784f50.tar.bz2 |
now that predicates have a decent abstraction layer on them, introduce a new
kind of predicate: one that is specific to imm nodes. The predicate function
specified here just checks an int64_t directly instead of messing around with
SDNode's. The virtue of this is that it means that fastisel and other things
can reason about these predicates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r-- | utils/TableGen/Record.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index f3a5df2..522b719 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -707,7 +707,7 @@ class CodeInit : public Init { public: explicit CodeInit(const std::string &V) : Value(V) {} - const std::string getValue() const { return Value; } + const std::string &getValue() const { return Value; } virtual Init *convertInitializerTo(RecTy *Ty) { return Ty->convertValue(this); |