[TableGen] Do not set ReadNone attribute on intrinsics with side effects
authorMomchil Velikov <momchil.velikov@arm.com>
Wed, 17 Jul 2019 10:53:13 +0000 (10:53 +0000)
committerMomchil Velikov <momchil.velikov@arm.com>
Wed, 17 Jul 2019 10:53:13 +0000 (10:53 +0000)
commit52c39396151978ca946e2a80d9118c8672bace14
treecd02861b46bf93f58c8612d3fecb4479c5d506e9
parent11b06242a7e554f489c10bc9613be3e3c9e0c70a
[TableGen] Do not set ReadNone attribute on intrinsics with side effects

If an intrinsic is defined without outputs, but having side effects,
it still can be removed completely from the program. This patch makes
TableGen not set Attribute::ReadNone for intrinsics which
are declared with IntrHasSideEffects.

Differential Revision: https://reviews.llvm.org/D64414

llvm-svn: 366312
llvm/test/TableGen/intrin-side-effects.td [new file with mode: 0644]
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/IntrinsicEmitter.cpp