Skip to content

Commit 27d707d

Browse files
Icohedronbogner
andcommitted
Disable all libcalls for DXIL
Co-authored-by: Justin Bogner <[email protected]>
1 parent 6a28d8c commit 27d707d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Analysis/TargetLibraryInfo.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ static void initializeLibCalls(TargetLibraryInfoImpl &TLI, const Triple &T,
205205
return;
206206
}
207207

208+
if (T.isDXIL()) {
209+
TLI.disableAllFunctions();
210+
return;
211+
}
212+
208213
// memset_pattern{4,8,16} is only available on iOS 3.0 and Mac OS X 10.5 and
209214
// later. All versions of watchOS support it.
210215
if (T.isMacOSX()) {

0 commit comments

Comments
 (0)