We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe59e8b commit 14a4e42Copy full SHA for 14a4e42
llvm/include/llvm/Analysis/ConstantFolding.h
@@ -233,8 +233,9 @@ struct PreservedCastFlags {
233
bool NSW = false;
234
};
235
236
-/// Try to cast C to InvC losslessly, satisfying CastOp(InvC) == C.
237
-/// Will try best to preserve the flags.
+/// Try to cast C to InvC losslessly, satisfying CastOp(InvC) equals C, or
+/// CastOp(InvC) is a refined value of undefined C. Will try best to
238
+/// preserve the flags.
239
LLVM_ABI Constant *getLosslessInvCast(Constant *C, Type *InvCastTo,
240
unsigned CastOp, const DataLayout &DL,
241
PreservedCastFlags *Flags = nullptr);
0 commit comments