]> granicus.if.org Git - clang/commit
[X86] Mark builtins 'const' where possible
authorCraig Topper <craig.topper@intel.com>
Tue, 8 May 2018 22:01:43 +0000 (22:01 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 8 May 2018 22:01:43 +0000 (22:01 +0000)
commit3f6d827caab16fd681b0527c9bd4041d7df0db59
treeed7649e404453a506fd5b064c85e791d637258cd
parent65d5e3d8ade9a0122899efcf3b53b37b0632ea98
[X86] Mark builtins 'const' where possible

I attempted to go through all the builtins and marked them const if they didn't touch memory or other hidden state.

I don't know how to test this or if it really matters.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331814 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/BuiltinsX86.def
include/clang/Basic/BuiltinsX86_64.def