summaryrefslogtreecommitdiffstats
path: root/llvm/docs/NVPTXUsage.rst
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2013-12-17 14:12:37 +0000
committerAlp Toker <alp@nuanti.com>2013-12-17 14:12:37 +0000
commita3ebe6ee2b7c5358a83cb9d1fd126e559ddc99d8 (patch)
treeed908116e4597ba34a3e5b1627c423abd43ab01c /llvm/docs/NVPTXUsage.rst
parent53358e43bc71dc1d1660a26f8a403c8a2d6ed76b (diff)
downloadbcm5719-llvm-a3ebe6ee2b7c5358a83cb9d1fd126e559ddc99d8.tar.gz
bcm5719-llvm-a3ebe6ee2b7c5358a83cb9d1fd126e559ddc99d8.zip
Refactor and micro-optimize ConsumeToken()
1) Introduce TryConsumeToken() to handle the common test-and-consume pattern. This brings about readability improvements in the parser and optimizes to avoid redundant checks in the common case. 2) Eliminate the ConsumeCodeCompletionTok special case from ConsumeToken(). This was used by only one caller which has been switched over to the more appropriate ConsumeCodeCompletionToken() function. llvm-svn: 197497
Diffstat (limited to 'llvm/docs/NVPTXUsage.rst')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud