PGO: add support for checked_cast_addr_br

This commit is contained in:
Joe Shajrawi
2017-09-15 16:32:24 -07:00
parent 89a6a57da7
commit 64830c2d5e
17 changed files with 199 additions and 80 deletions

View File

@@ -78,10 +78,10 @@ bool canUseScalarCheckedCastInstructions(SILModule &M,
/// using a scalar cast operation.
void emitIndirectConditionalCastWithScalar(
SILBuilder &B, ModuleDecl *M, SILLocation loc,
CastConsumptionKind consumption,
SILValue src, CanType sourceType,
SILValue dest, CanType targetType,
SILBasicBlock *trueBB, SILBasicBlock *falseBB);
CastConsumptionKind consumption, SILValue src, CanType sourceType,
SILValue dest, CanType targetType, SILBasicBlock *trueBB,
SILBasicBlock *falseBB, Optional<uint64_t> TrueCount = None,
Optional<uint64_t> FalseCount = None);
/// \brief Does the type conform to the _ObjectiveCBridgeable protocol.
bool isObjectiveCBridgeable(ModuleDecl *M, CanType Ty);