Skip to content

Commit 24a41c9

Browse files
committed
Add a comment describing why libcalls are disabled for DXIL
1 parent 27d707d commit 24a41c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Analysis/TargetLibraryInfo.cpp

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

208+
// DXIL does not support libcalls, and disabling them here prevents a number
209+
// of passes from introducing libcalls into DXIL which would otherwise
210+
// complicate lowering/legalization
208211
if (T.isDXIL()) {
209212
TLI.disableAllFunctions();
210213
return;

0 commit comments

Comments
 (0)