92 references to EmitOpCode
Microsoft.CodeAnalysis (92)
CodeGen\ILBuilder.cs (1)
1109
EmitOpCode
(ILOpCode.Nop);
CodeGen\ILBuilderConversions.cs (48)
27
this.
EmitOpCode
(fromUnsigned ? ILOpCode.Conv_ovf_i1_un : ILOpCode.Conv_ovf_i1);
29
this.
EmitOpCode
(ILOpCode.Conv_i1);
41
this.
EmitOpCode
(fromUnsigned ? ILOpCode.Conv_ovf_u1_un : ILOpCode.Conv_ovf_u1);
43
this.
EmitOpCode
(ILOpCode.Conv_u1);
57
this.
EmitOpCode
(fromUnsigned ? ILOpCode.Conv_ovf_i2_un : ILOpCode.Conv_ovf_i2);
59
this.
EmitOpCode
(ILOpCode.Conv_i2);
74
this.
EmitOpCode
(fromUnsigned ? ILOpCode.Conv_ovf_u2_un : ILOpCode.Conv_ovf_u2);
76
this.
EmitOpCode
(ILOpCode.Conv_u2);
93
this.
EmitOpCode
(ILOpCode.Conv_ovf_i4_un);
97
this.
EmitOpCode
(fromUnsigned ? ILOpCode.Conv_ovf_i4_un : ILOpCode.Conv_ovf_i4);
99
this.
EmitOpCode
(ILOpCode.Conv_i4);
116
this.
EmitOpCode
(ILOpCode.Conv_ovf_u4);
120
this.
EmitOpCode
(fromUnsigned ? ILOpCode.Conv_ovf_u4_un : ILOpCode.Conv_ovf_u4);
122
this.
EmitOpCode
(ILOpCode.Conv_u4);
136
this.
EmitOpCode
(ILOpCode.Conv_i); // potentially widening, so not NOP
143
this.
EmitOpCode
(ILOpCode.Conv_u); // potentially widening, so not NOP
147
this.
EmitOpCode
(ILOpCode.Conv_ovf_i_un);
150
this.
EmitOpCode
(ILOpCode.Conv_u); // potentially widening, so not NOP
159
this.
EmitOpCode
(fromUnsigned ? ILOpCode.Conv_ovf_i_un : ILOpCode.Conv_ovf_i);
161
this.
EmitOpCode
(ILOpCode.Conv_i);
178
this.
EmitOpCode
(ILOpCode.Conv_u); // potentially widening, so not NOP
184
this.
EmitOpCode
(ILOpCode.Conv_ovf_u);
186
this.
EmitOpCode
(ILOpCode.Conv_i); // potentially widening, so not NOP
190
this.
EmitOpCode
(fromUnsigned ? ILOpCode.Conv_ovf_u_un : ILOpCode.Conv_ovf_u);
192
this.
EmitOpCode
(ILOpCode.Conv_u);
206
this.
EmitOpCode
(ILOpCode.Conv_i8); // sign extend
212
this.
EmitOpCode
(ILOpCode.Conv_u8); // 0 extend
218
this.
EmitOpCode
(ILOpCode.Conv_ovf_i8_un);
220
this.
EmitOpCode
(ILOpCode.Conv_u8); // 0 extend if unchecked
224
this.
EmitOpCode
(ILOpCode.Conv_ovf_i8_un);
229
this.
EmitOpCode
(ILOpCode.Conv_ovf_i8);
231
this.
EmitOpCode
(ILOpCode.Conv_i8);
248
this.
EmitOpCode
(ILOpCode.Conv_u8); // 0 extend
255
this.
EmitOpCode
(ILOpCode.Conv_ovf_u8);
257
this.
EmitOpCode
(ILOpCode.Conv_i8); // sign extend if unchecked
261
this.
EmitOpCode
(ILOpCode.Conv_ovf_u8);
266
this.
EmitOpCode
(ILOpCode.Conv_ovf_u8);
268
this.
EmitOpCode
(ILOpCode.Conv_u8);
279
this.
EmitOpCode
(ILOpCode.Conv_r_un);
282
this.
EmitOpCode
(ILOpCode.Conv_r4);
291
this.
EmitOpCode
(ILOpCode.Conv_r_un);
294
this.
EmitOpCode
(ILOpCode.Conv_r8);
306
this.
EmitOpCode
(ILOpCode.Conv_u);
309
this.
EmitOpCode
(ILOpCode.Conv_ovf_u_un);
315
this.
EmitOpCode
(ILOpCode.Conv_ovf_u);
318
this.
EmitOpCode
(ILOpCode.Conv_ovf_u);
335
this.
EmitOpCode
(ILOpCode.Conv_u);
342
this.
EmitOpCode
(ILOpCode.Conv_i);
CodeGen\ILBuilderEmit.cs (39)
106
EmitOpCode
(ILOpCode.Dup); //array
107
EmitOpCode
(ILOpCode.Ldtoken);
446
case 0:
EmitOpCode
(ILOpCode.Ldloc_0); break;
447
case 1:
EmitOpCode
(ILOpCode.Ldloc_1); break;
448
case 2:
EmitOpCode
(ILOpCode.Ldloc_2); break;
449
case 3:
EmitOpCode
(ILOpCode.Ldloc_3); break;
453
EmitOpCode
(ILOpCode.Ldloc_s);
458
EmitOpCode
(ILOpCode.Ldloc);
471
case 0:
EmitOpCode
(ILOpCode.Stloc_0); break;
472
case 1:
EmitOpCode
(ILOpCode.Stloc_1); break;
473
case 2:
EmitOpCode
(ILOpCode.Stloc_2); break;
474
case 3:
EmitOpCode
(ILOpCode.Stloc_3); break;
478
EmitOpCode
(ILOpCode.Stloc_s);
483
EmitOpCode
(ILOpCode.Stloc);
502
EmitOpCode
(ILOpCode.Ldloca_s);
507
EmitOpCode
(ILOpCode.Ldloca);
518
case 0:
EmitOpCode
(ILOpCode.Ldarg_0); break;
519
case 1:
EmitOpCode
(ILOpCode.Ldarg_1); break;
520
case 2:
EmitOpCode
(ILOpCode.Ldarg_2); break;
521
case 3:
EmitOpCode
(ILOpCode.Ldarg_3); break;
525
EmitOpCode
(ILOpCode.Ldarg_s);
530
EmitOpCode
(ILOpCode.Ldarg);
541
EmitOpCode
(ILOpCode.Ldarga_s);
546
EmitOpCode
(ILOpCode.Ldarga);
556
EmitOpCode
(ILOpCode.Starg_s);
561
EmitOpCode
(ILOpCode.Starg);
641
EmitOpCode
(code);
647
EmitOpCode
(ILOpCode.Ldc_i4_s);
652
EmitOpCode
(ILOpCode.Ldc_i4);
688
EmitOpCode
(ILOpCode.Conv_i8);
693
EmitOpCode
(ILOpCode.Conv_u8);
697
EmitOpCode
(ILOpCode.Ldc_i8);
707
EmitOpCode
(ILOpCode.Conv_i);
712
EmitOpCode
(ILOpCode.Conv_u);
722
EmitOpCode
(ILOpCode.Ldc_r4);
728
EmitOpCode
(ILOpCode.Ldc_r8);
734
EmitOpCode
(ILOpCode.Ldnull);
745
EmitOpCode
(ILOpCode.Ldstr);
753
EmitOpCode
(ILOpCode.Unaligned);
CodeGen\SwitchIntegralJumpTableEmitter.cs (4)
462
_builder.
EmitOpCode
(ILOpCode.Sub);
525
_builder.
EmitOpCode
(ILOpCode.Sub);
552
_builder.
EmitOpCode
(ILOpCode.Dup);
555
_builder.
EmitOpCode
(ILOpCode.Pop);