[PerfMonitor] Use Intrinsics::getDeclaration
authorTobias Grosser <tobias@grosser.es>
Mon, 3 Apr 2017 15:23:08 +0000 (15:23 +0000)
committerTobias Grosser <tobias@grosser.es>
Mon, 3 Apr 2017 15:23:08 +0000 (15:23 +0000)
commit637be04b77537d693923961821c05096a6c75c40
treec32e9fbe0dacfe7e7215c0465af070940e33cadf
parent65371af2e18348e1ea45516c1ace17de0c6e46c6
[PerfMonitor] Use Intrinsics::getDeclaration

Instead of creating the declaration ourselves, we obtain it directly from the
LLVM intrinsic definitions. This addresses a post-review comment for r299359.

Suggested-by: Hongzing Zheng <etherzhhb@gmail.com>
llvm-svn: 299360
polly/lib/CodeGen/PerfMonitor.cpp