]> granicus.if.org Git - llvm/commit
[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)
commit8c80b5c54d9ea21317c5ca9dc038cd43094d9489
tree36b550849c671ce772eede6a6ca311a147386402
parent4bcaf8b0efb145c379287f52de2703e3fb5b33f0
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366312 91177308-0d34-0410-b5e6-96231b3b80d8
test/TableGen/intrin-side-effects.td [new file with mode: 0644]
utils/TableGen/CodeGenDAGPatterns.cpp
utils/TableGen/IntrinsicEmitter.cpp