Skip to content
Commit b94bd05b authored by Justin Holewinski's avatar Justin Holewinski
Browse files

[NVPTX] Add NVVMReflect pass to allow compile-time selection of

specific code paths.

This allows us to write code like:

  if (__nvvm_reflect("FOO"))
    // Do something
  else
    // Do something else

and compile into a library, then give "FOO" a value at kernel
compile-time so the check becomes a no-op.

llvm-svn: 178416
parent 0497ab14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment