87 references to Machine
Microsoft.Build.Tasks.Core (6)
ManifestUtil\MetadataReader.cs (6)
202Machine machine = _peReader.PEHeaders.CoffHeader.Machine; 215case Machine.I386: 227case Machine.IA64: 230case Machine.Amd64: 233case Machine.Arm: 236case Machine.Arm64:
Microsoft.CodeAnalysis (14)
Compilation\Compilation.cs (9)
2277Machine machine; 2281machine = Machine.Arm64; 2285machine = Machine.ArmThumb2; 2289machine = Machine.Amd64; 2293machine = Machine.IA64; 2297machine = Machine.I386; 2302machine = Machine.Unknown; 2330private static CorFlags GetCorHeaderFlags(Machine machine, bool strongNameSigned, bool prefers32Bit) 2334if (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)
184var refMachine = assembly.Machine; 192!(refMachine == Machine.I386 && !assembly.Bit32Required)) 196if (!(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)
78return headers.CoffHeader.Machine == Machine.Amd64; 84|| headers.CoffHeader.Machine == Machine.Amd64 85|| headers.CoffHeader.Machine == Machine.IA64;
Microsoft.CodeAnalysis.VisualBasic (15)
Emit\PEModuleBuilder.vb (1)
163Not (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)
103Friend Overrides ReadOnly Property Machine As System.Reflection.PortableExecutable.Machine 107Return System.Reflection.PortableExecutable.Machine.Arm64 109Return System.Reflection.PortableExecutable.Machine.ArmThumb2 111Return System.Reflection.PortableExecutable.Machine.Amd64 113Return System.Reflection.PortableExecutable.Machine.IA64 115Return System.Reflection.PortableExecutable.Machine.I386
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockSymbols.vb (2)
686Friend Overrides ReadOnly Property Machine As System.Reflection.PortableExecutable.Machine 688Return 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; } 65Machine machine, 86internal bool RequiresStartupStub => Machine == Machine.I386 || Machine == 0; 92internal 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;