llvm-project/libclc/generic/lib/LLVM3.6/subnormal_helper_func.ll
Tom Stellard ba742f58af Allow compilation depending to the LLVM version
It allows to keep temporary compatibilty with older version.
For exemple, this can be use when change are not to large.

Patch by: EdB

llvm-svn: 236113
2015-04-29 15:37:06 +00:00

9 lines
192 B
LLVM

@__CLC_SUBNORMAL_DISABLE = external global i1
define i1 @__clc_subnormals_disabled() #0 {
%disable = load i1* @__CLC_SUBNORMAL_DISABLE
ret i1 %disable
}
attributes #0 = { alwaysinline }