diff options
| author | Erich Keane <erich.keane@intel.com> | 2019-06-26 00:08:22 +0000 |
|---|---|---|
| committer | Erich Keane <erich.keane@intel.com> | 2019-06-26 00:08:22 +0000 |
| commit | ad28befcf49cd0f0eb1a73a1be39ee9c2f19c8c9 (patch) | |
| tree | 0326985cadc85d5e119ada834cf3ffbf9dae9518 /llvm/utils | |
| parent | ae9e42f614f80334fa3f69a8a36a58a31a641675 (diff) | |
| download | bcm5719-llvm-ad28befcf49cd0f0eb1a73a1be39ee9c2f19c8c9.tar.gz bcm5719-llvm-ad28befcf49cd0f0eb1a73a1be39ee9c2f19c8c9.zip | |
Teach TableGen Intrin Emitter to handle LLVMPointerType<llvm_any_ty>
r363233 rewrote a bunch of the Intrin Emitter code, however the new
function to update the arg codes did not properly consider a pointer to
an any. This patch adds that logic.
Differential Revision: https://reviews.llvm.org/D63507
llvm-svn: 364364
Diffstat (limited to 'llvm/utils')
| -rw-r--r-- | llvm/utils/TableGen/IntrinsicEmitter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/IntrinsicEmitter.cpp b/llvm/utils/TableGen/IntrinsicEmitter.cpp index ab2f2d8c5dc..bcb8af2fc56 100644 --- a/llvm/utils/TableGen/IntrinsicEmitter.cpp +++ b/llvm/utils/TableGen/IntrinsicEmitter.cpp @@ -372,6 +372,9 @@ static void UpdateArgCodes(Record *R, std::vector<unsigned char> &ArgCodes, unsigned Tmp = 0; switch (getValueType(R->getValueAsDef("VT"))) { default: break; + case MVT::iPTR: + UpdateArgCodes(R->getValueAsDef("ElTy"), ArgCodes, NumInserted, Mapping); + break; case MVT::iPTRAny: ++Tmp; LLVM_FALLTHROUGH; |

