3 writes to BranchCode
Microsoft.CodeAnalysis (3)
CodeGen\BasicBlock.cs (3)
213this.BranchCode = newBranchCode; 224this.BranchCode = branchCode; 663this.BranchCode = ILOpCode.Nop;
32 references to BranchCode
Microsoft.CodeAnalysis (32)
CodeGen\BasicBlock.cs (22)
210Debug.Assert(this.BranchCode.IsConditionalBranch() == newBranchCode.IsConditionalBranch()); 230if (this.BranchCode.IsConditionalBranch()) 248=> (this.BranchLabel != null) && (this.BranchCode != ILOpCode.Nop); 296this.SetBranchCode(this.BranchCode.GetLeaveOpcode()); 314var curBranchCode = this.BranchCode; 363Debug.Assert(BranchCode != ILOpCode.Nop, "Nop branches should not have labels"); 394next.BranchCode == ILOpCode.Nop && 407next.BranchCode == this.BranchCode && 412var diff = this.BranchCode.Size() + this.BranchCode.GetBranchOperandSize(); 447(next.BranchCode == ILOpCode.Br || next.BranchCode == ILOpCode.Br_s) && 471if (next.BranchCode == ILOpCode.Br_s) 481var origBrOp = this.BranchCode; 493var curBranchCode = this.BranchCode; 507if (BranchBlock.HasNoRegularInstructions && BranchBlock.BranchCode == ILOpCode.Ret) 522var curBranchCode = this.BranchCode; 587switch (this.BranchCode) 615switch (BranchCode) 633Debug.Assert(BranchCode.Size() == 1); 634branchSize = 1 + BranchCode.GetBranchOperandSize();
CodeGen\ILBuilder.cs (10)
157_lastCompleteBlock.BranchCode == ILOpCode.Nop && 290var branchCode = block.BranchCode; 360block.SetBranch(blockedDest, block.BranchCode); 471Debug.Assert(block.EnclosingHandler.LastFilterConditionBlock.BranchCode == ILOpCode.Endfilter); 526switch (targetBlock.BranchCode) 586switch (targetBlock.BranchCode) 767if ((block.BranchCode != ILOpCode.Nop) || (block.BranchLabel == null)) 911switch (block.BranchCode) 940WriteOpCode(writer, block.BranchCode); 948if (block.BranchCode.GetBranchOperandSize() == 1)