Expose "noduplicate" attribute as a property for intrinsics.

Press ? to show keyboard shortcuts.
Committed
elibenMar 18 2014, 4:51 PM
Parents
rL204199: Object/COFF: Add function to check if section number is reserved one.
Branches
Unknown
Tags
Unknown
Description

Expose "noduplicate" attribute as a property for intrinsics.

The "noduplicate" function attribute exists to prevent certain optimizations
from duplicating calls to the function. This is important on platforms where
certain function call duplications are unsafe (for example execution barriers
for CUDA and OpenCL).

This patch makes it possible to specify intrinsics as "noduplicate" and
translates that to the appropriate function attribute.

rL204200

llvm/trunk/include/llvm/IR/Intrinsics.td

Loading...

llvm/trunk/include/llvm/IR/IntrinsicsNVVM.td

Loading...

llvm/trunk/test/CodeGen/NVPTX/noduplicate-syncthreads.ll

Loading...

llvm/trunk/test/Feature/intrinsic-noduplicate.ll

Loading...

llvm/trunk/utils/TableGen/CodeGenIntrinsics.h

Loading...

llvm/trunk/utils/TableGen/CodeGenTarget.cpp

Loading...

llvm/trunk/utils/TableGen/IntrinsicEmitter.cpp

Loading...

Add Comment