about summary refs log tree commit diff
path: root/src/rustllvm/PassWrapper.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-02-08 17:59:23 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-02-09 12:02:03 +1100
commitb029a188205b704fed28d4fbe0037a453ace0ea1 (patch)
tree43257bf8f7e43619c3ae28acebb7847e67c9e4fa /src/rustllvm/PassWrapper.cpp
parentb60bed97918af43abe0b7d62f21c780d58042755 (diff)
downloadrust-b029a188205b704fed28d4fbe0037a453ace0ea1.tar.gz
rust-b029a188205b704fed28d4fbe0037a453ace0ea1.zip
extra::test: add an opaque function to assist with accurate
benchmarking.

This allows a result to be marked as "used" by passing it to a function
LLVM cannot see inside. By making `iter` generic and using this
`black_box` on the result benchmarks can get this behaviour simply by
returning their computation.
Diffstat (limited to 'src/rustllvm/PassWrapper.cpp')
0 files changed, 0 insertions, 0 deletions