81 references to Machine
Microsoft.CodeAnalysis (14)
Compilation\Compilation.cs (9)
2275Machine machine; 2279machine = Machine.Arm64; 2283machine = Machine.ArmThumb2; 2287machine = Machine.Amd64; 2291machine = Machine.IA64; 2295machine = Machine.I386; 2300machine = Machine.Unknown; 2328private static CorFlags GetCorHeaderFlags(Machine machine, bool strongNameSigned, bool prefers32Bit) 2332if (machine == Machine.I386)
Emit\ModulePropertiesForSerialization.cs (3)
36/// Specifies the target CPU. <see cref="Machine.Unknown"/> means AnyCPU. 38public readonly Machine Machine; 122Machine machine,
MetadataReader\PEModule.cs (2)
311internal Machine Machine 318return Machine.I386;
Microsoft.CodeAnalysis.CSharp (19)
Emitter\Model\PEModuleBuilder.cs (3)
185var refMachine = assembly.Machine; 193!(refMachine == Machine.I386 && !assembly.Bit32Required)) 197if (!(machine == Machine.I386 && !SourceModule.Bit32Required) &&
Symbols\AssemblySymbol.cs (1)
107internal Machine Machine
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
173internal override Machine Machine
Symbols\MissingModuleSymbol.cs (2)
48internal override Machine Machine 52return Machine.I386;
Symbols\ModuleSymbol.cs (1)
96internal abstract Machine Machine { get; }
Symbols\Retargeting\RetargetingModuleSymbol.cs (1)
107internal override Machine Machine
Symbols\Source\SourceAssemblySymbol.cs (4)
990var assemblyMachine = this.Machine; 991bool isPlatformAgnostic = (assemblyMachine == System.Reflection.PortableExecutable.Machine.I386 && !this.Bit32Required); 1004var moduleMachine = m.Machine; 1006if (moduleMachine == System.Reflection.PortableExecutable.Machine.I386 && !m.Bit32Required)
Symbols\Source\SourceModuleSymbol.cs (6)
85internal override Machine Machine 92return Machine.ArmThumb2; 94return Machine.Amd64; 96return Machine.Arm64; 98return Machine.IA64; 100return Machine.I386;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
Emit\DeterministicTests.cs (2)
159Assert.Equal(Machine.Amd64, peReader1.PEHeaders.CoffHeader.Machine); 160Assert.Equal(Machine.Arm64, peReader2.PEHeaders.CoffHeader.Machine);
Emit\EmitMetadataTests.cs (2)
2352Assert.Equal(Machine.I386, coffHeader.Machine); 2490Assert.Equal(Machine.Amd64, coffHeader.Machine);
Microsoft.CodeAnalysis.Test.Utilities (3)
Metadata\MetadataReaderUtils.cs (3)
77return headers.CoffHeader.Machine == Machine.Amd64; 83|| headers.CoffHeader.Machine == Machine.Amd64 84|| headers.CoffHeader.Machine == Machine.IA64;
Microsoft.CodeAnalysis.VisualBasic (15)
Emit\PEModuleBuilder.vb (1)
164Not (refMachine = Machine.I386 AndAlso Not assembly.Bit32Required) Then
Symbols\AssemblySymbol.vb (1)
108Friend ReadOnly Property Machine As System.Reflection.PortableExecutable.Machine
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
117Friend Overrides ReadOnly Property Machine As System.Reflection.PortableExecutable.Machine
Symbols\MissingModuleSymbol.vb (2)
43Friend Overrides ReadOnly Property Machine As System.Reflection.PortableExecutable.Machine 45Return System.Reflection.PortableExecutable.Machine.I386
Symbols\ModuleSymbol.vb (1)
37Friend MustOverride ReadOnly Property Machine As System.Reflection.PortableExecutable.Machine
Symbols\Retargeting\RetargetingModuleSymbol.vb (1)
99Friend Overrides ReadOnly Property Machine As System.Reflection.PortableExecutable.Machine
Symbols\Source\SourceAssemblySymbol.vb (2)
1370Dim isPlatformAgnostic As Boolean = (assemblyMachine = PortableExecutable.Machine.I386 AndAlso Not Me.Bit32Required) 1382If moduleMachine = PortableExecutable.Machine.I386 AndAlso Not m.Bit32Required Then
Symbols\Source\SourceModuleSymbol.vb (6)
104Friend Overrides ReadOnly Property Machine As System.Reflection.PortableExecutable.Machine 108Return System.Reflection.PortableExecutable.Machine.Arm64 110Return System.Reflection.PortableExecutable.Machine.ArmThumb2 112Return System.Reflection.PortableExecutable.Machine.Amd64 114Return System.Reflection.PortableExecutable.Machine.IA64 116Return System.Reflection.PortableExecutable.Machine.I386
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockSymbols.vb (2)
676Friend Overrides ReadOnly Property Machine As System.Reflection.PortableExecutable.Machine 678Return System.Reflection.PortableExecutable.Machine.I386
System.Reflection.Metadata (23)
System\Reflection\PortableExecutable\CoffHeader.cs (2)
11public Machine Machine { get; } 57Machine = (Machine)reader.ReadUInt16();
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (7)
104if (Header.Machine == Machine.I386 || Header.Machine == 0) 205private static void WriteRelocationSection(BlobBuilder builder, Machine machine, int entryPointAddress) 210builder.WriteUInt32((machine == Machine.IA64) ? 14u : 12u); 212uint relocType = (machine == Machine.Amd64 || machine == Machine.IA64 || machine == Machine.Arm64) ? 10u : 3u; 215if (machine == Machine.IA64)
System\Reflection\PortableExecutable\ManagedTextSection.cs (6)
30public Machine Machine { get; } 66Machine machine, 87internal bool RequiresStartupStub => Machine == Machine.I386 || Machine == 0; 93internal bool Requires64bits => Machine == Machine.Amd64 || Machine == Machine.IA64 || Machine == Machine.Arm64;
System\Reflection\PortableExecutable\PEBuilder.cs (1)
195builder.WriteUInt16((ushort)(Header.Machine == 0 ? Machine.I386 : Header.Machine));
System\Reflection\PortableExecutable\PEHeaderBuilder.cs (7)
11public Machine Machine { get; } 47Machine machine = 0, 108internal bool Is32Bit => Machine != Machine.Amd64 && Machine != Machine.IA64 && Machine != Machine.Arm64 && Machine != Machine.LoongArch64 && Machine != Machine.RiscV64;
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.cs (1)
91Machine coffMachine = peHeaders.CoffHeader.Machine;