Home
last modified time | relevance | path

Searched refs:is64Bit (Results 1 – 25 of 147) sorted by relevance

123456

/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DXCOFFObjectFile.cpp134 assert(is64Bit() && "64-bit interface called on a 32-bit object file."); in getSymbolAuxType()
155 assert(!is64Bit() && "32-bit interface called on 64-bit object file."); in toSection32()
164 assert(is64Bit() && "64-bit interface called on a 32-bit object file."); in toSection64()
180 assert(!is64Bit() && "32-bit interface called on 64-bit object file."); in fileHeader32()
185 assert(is64Bit() && "64-bit interface called on a 32-bit object file."); in fileHeader64()
190 assert(!is64Bit() && "32-bit interface called on 64-bit object file."); in auxiliaryHeader32()
195 assert(is64Bit() && "64-bit interface called on a 32-bit object file."); in auxiliaryHeader64()
205 assert(!is64Bit() && "32-bit interface called on 64-bit object file."); in sectionHeaderTable32()
211 assert(is64Bit() && "64-bit interface called on a 32-bit object file."); in sectionHeaderTable64()
338 if (is64Bit()) in getSymbolType()
[all …]
H A DCOFFImportFile.cpp258 bool is64Bit() const { return COFF::is64Bit(NativeMachine); } in is64Bit() function in llvm::object::__anonbd4e744f0211::ObjectFactory
281 u16(is64Bit() ? C_Invalid : IMAGE_FILE_32BIT_MACHINE), in createImportDescriptor()
417 u16(is64Bit() ? C_Invalid : IMAGE_FILE_32BIT_MACHINE), in createNullImportDescriptor()
466 uint32_t VASize = is64Bit() ? 8 : 4; in createNullThunk()
480 u16(is64Bit() ? C_Invalid : IMAGE_FILE_32BIT_MACHINE), in createNullThunk()
495 u32((is64Bit() ? IMAGE_SCN_ALIGN_8BYTES : IMAGE_SCN_ALIGN_4BYTES) | in createNullThunk()
508 u32((is64Bit() ? IMAGE_SCN_ALIGN_8BYTES : IMAGE_SCN_ALIGN_4BYTES) | in createNullThunk()
516 if (is64Bit()) in createNullThunk()
521 if (is64Bit()) in createNullThunk()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86MCAsmInfo.cpp40 bool is64Bit = T.getArch() == Triple::x86_64; in X86MCAsmInfoDarwin() local
41 if (is64Bit) in X86MCAsmInfoDarwin()
48 if (!is64Bit) in X86MCAsmInfoDarwin()
83 bool is64Bit = T.getArch() == Triple::x86_64; in X86ELFMCAsmInfo() local
89 CodePointerSize = (is64Bit && !isX32) ? 8 : 4; in X86ELFMCAsmInfo()
92 CalleeSaveStackSlotSize = is64Bit ? 8 : 4; in X86ELFMCAsmInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86Subtarget.h188 return hasCX16() && is64Bit(); in canUseCMPXCHG16B()
192 bool canUseCMOV() const { return hasCMOV() || hasSSE1() || is64Bit(); } in canUseCMOV()
214 bool canUseLAHFSAHF() const { return hasLAHFSAHF64() || !is64Bit(); } in canUseLAHFSAHF()
266 bool isXRaySupported() const override { return is64Bit(); } in isXRaySupported()
271 bool hasCLFLUSH() const { return hasSSE2() || is64Bit(); } in hasCLFLUSH()
276 bool hasMFence() const { return hasSSE2() || is64Bit(); } in hasMFence()
295 bool isTargetNaCl32() const { return isTargetNaCl() && !is64Bit(); } in isTargetNaCl32()
296 bool isTargetNaCl64() const { return isTargetNaCl() && is64Bit(); } in isTargetNaCl64()
H A DX86Subtarget.cpp84 if (is64Bit()) { in classifyLocalReference()
159 if (is64Bit()) { in classifyGlobalReference()
212 if (is64Bit() && F && (CallingConv::X86_RegCall == F->getCallingConv())) in classifyGlobalFunctionReference()
220 is64Bit()) in classifyGlobalFunctionReference()
223 if (!is64Bit() && !GV && TM.getRelocationModel() == Reloc::Static) in classifyGlobalFunctionReference()
228 if (is64Bit()) { in classifyGlobalFunctionReference()
340 else if (is64Bit()) in X86Subtarget()
H A DX86ArgumentStackSlotRebase.cpp79 RC = STI.is64Bit() ? &X86::GR64_ArgRefRegClass : &X86::GR32_ArgRefRegClass; in getArgBaseReg()
93 RC = STI.is64Bit() ? &X86::GR64_ArgRefRegClass : nullptr; in getArgBaseReg()
165 TII->get(STI.is64Bit() ? X86::PLEA64r : X86::PLEA32r), ArgBaseReg) in runOnMachineFunction()
H A DX86ISelLoweringCall.cpp123 if ((VT == MVT::f64 || VT == MVT::f80) && !Subtarget.is64Bit() && in getRegisterTypeForCallingConv()
158 if (!Subtarget.is64Bit() && !Subtarget.hasX87()) { in getNumRegistersForCallingConv()
264 if (Subtarget.is64Bit()) { in getByValTypeAlignment()
306 if (Subtarget.hasSSE1() && (Subtarget.is64Bit() || Subtarget.hasX87()) && in getOptimalMemOpType()
310 Op.size() >= 8 && !Subtarget.is64Bit() && Subtarget.hasSSE2()) { in getOptimalMemOpType()
323 if (Subtarget.is64Bit() && Op.size() >= 8) in getOptimalMemOpType()
437 if (Subtarget.is64Bit()) in markLibCallAttributes()
475 if (!Subtarget.is64Bit()) in getPICJumpTableRelocBase()
490 (Subtarget.is64Bit() && in getPICJumpTableRelocBaseExpr()
507 RRC = Subtarget.is64Bit() ? &X86::GR64RegClass : &X86::GR32RegClass; in findRepresentativeClass()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMachObjectWriter.cpp191 W.write<uint32_t>(is64Bit() ? MachO::MH_MAGIC_64 : MachO::MH_MAGIC); in writeHeader()
200 if (is64Bit()) in writeHeader()
203 assert(W.OS.tell() - Start == (is64Bit() ? sizeof(MachO::mach_header_64) in writeHeader()
228 is64Bit() ? sizeof(MachO::segment_command_64): in writeSegmentLoadCommand()
230 W.write<uint32_t>(is64Bit() ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT); in writeSegmentLoadCommand()
232 NumSections * (is64Bit() ? sizeof(MachO::section_64) : in writeSegmentLoadCommand()
236 if (is64Bit()) { in writeSegmentLoadCommand()
279 if (is64Bit()) { in writeSection()
297 if (is64Bit()) in writeSection()
301 (is64Bit() ? sizeof(MachO::section_64) : sizeof(MachO::section))); in writeSection()
[all …]
H A DXCOFFObjectWriter.cpp306 TargetObjectWriter->is64Bit() ? UINT64_MAX : UINT32_MAX;
359 bool is64Bit() const { return TargetObjectWriter->is64Bit(); } in is64Bit() function in __anon43032e790111::XCOFFObjectWriter
432 return HasVisibility && !is64Bit() ? XCOFF::AuxFileHeaderSizeShort : 0; in auxiliaryHeaderSize()
440 is64Bit() ? W.write<uint64_t>(Word) : W.write<uint32_t>(Word); in writeWord()
847 return SymbolName.size() > XCOFF::NameSize || is64Bit(); in nameShouldBeInStringTable()
868 if (is64Bit()) { in writeSymbolEntry()
884 W.write<uint32_t>(is64Bit() ? Lo_32(SectionOrLength) : SectionOrLength); in writeSymbolAuxCsectEntry()
889 if (is64Bit()) { in writeSymbolAuxCsectEntry()
923 if (is64Bit()) in writeSymbolAuxFileEntry()
932 if (!is64Bit()) in writeSymbolAuxDwarfEntry()
[all …]
H A DELFObjectWriter.cpp141 bool is64Bit() const;
157 if (is64Bit()) in WriteWord()
266 bool ELFWriter::is64Bit() const { in is64Bit() function in ELFWriter
267 return OWriter.TargetObjectWriter->is64Bit(); in is64Bit()
282 W.OS << char(is64Bit() ? ELF::ELFCLASS64 : ELF::ELFCLASS32); // e_ident[EI_CLASS] in writeHeader()
314 W.write<uint16_t>(is64Bit() ? sizeof(ELF::Elf64_Ehdr) in writeHeader()
321 W.write<uint16_t>(is64Bit() ? sizeof(ELF::Elf64_Shdr) in writeHeader()
494 SymbolTableWriter Writer(*this, is64Bit()); in computeSymbolTable()
497 unsigned EntrySize = is64Bit() ? ELF::SYMENTRY_SIZE64 : ELF::SYMENTRY_SIZE32; in computeSymbolTable()
500 SymtabSection->setAlignment(is64Bit() ? Align(8) : Align(4)); in computeSymbolTable()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCMCAsmInfo.cpp20 PPCELFMCAsmInfo::PPCELFMCAsmInfo(bool is64Bit, const Triple& T) {
25 if (is64Bit) { in PPCELFMCAsmInfo()
51 Data64bitsDirective = is64Bit ? "\t.quad\t" : nullptr; in PPCELFMCAsmInfo()
21 PPCELFMCAsmInfo(bool is64Bit,const Triple & T) PPCELFMCAsmInfo() argument
H A DPPCMCAsmInfo.h26 explicit PPCELFMCAsmInfo(bool is64Bit, const Triple &);
33 explicit PPCXCOFFMCAsmInfo(bool is64Bit, const Triple &);
H A DPPCELFObjectWriter.cpp289 if (is64Bit()) in getRelocType()
304 if (is64Bit()) in getRelocType()
404 if (is64Bit()) in getRelocType()
410 if (is64Bit()) in getRelocType()
416 if (is64Bit()) in getRelocType()
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcTargetMachine.cpp38 static std::string computeDataLayout(const Triple &T, bool is64Bit) { in computeDataLayout() argument
44 if (!is64Bit) in computeDataLayout()
52 if (is64Bit) in computeDataLayout()
57 if (is64Bit) in computeDataLayout()
110 TLOF(std::make_unique<SparcELFTargetObjectFile>()), is64Bit(is64bit) { in SparcTargetMachine()
144 this->is64Bit); in getSubtargetImpl()
H A DSparcSubtarget.cpp51 bool is64Bit)
54 TargetTriple(TM.getTargetTriple()), Is64Bit(is64Bit), in getAdjustedFrameSize()
60 if (is64Bit()) { in getAdjustedFrameSize()
47 SparcSubtarget(const Triple & TT,const std::string & CPU,const std::string & FS,const TargetMachine & TM,bool is64Bit) SparcSubtarget() argument
H A DSparcSubtarget.h83 bool is64Bit() const { return Is64Bit; }
88 return is64Bit() ? 2047 : 0; in isTargetLinux()
75 bool is64Bit() const { return Is64Bit; } is64Bit() function
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DXCOFFDumper.cpp118 if (Obj.is64Bit()) { in printFileHeaders()
140 if (Obj.is64Bit()) in printAuxiliaryHeader()
147 if (Obj.is64Bit()) in printSectionHeaders()
195 if (Obj.is64Bit()) { in printLoaderSectionHeader()
269 if (Obj.is64Bit()) in printLoaderSectionSymbols()
341 Obj.is64Bit() ? 18 : 10) in printLoaderSectionRelocationEntry()
363 W.startLine() << center_justify("Vaddr", Obj.is64Bit() ? 18 : 10) in printLoaderSectionRelocationEntriesHelper()
401 if (Obj.is64Bit()) in printLoaderSectionRelocationEntries()
448 if (Obj.is64Bit()) in printExceptionSection()
455 if (Obj.is64Bit()) in printRelocations()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/
H A DRISCVTargetParser.cpp36 bool is64Bit() const { return DefaultMarch.starts_with("rv64"); } in is64Bit() function
68 return Info->is64Bit() == IsRV64; in parseCPU()
94 if (IsRV64 == C.is64Bit()) in fillValidCPUArchList()
101 if (IsRV64 == C.is64Bit()) in fillValidTuneCPUArchList()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyWasmObjectWriter.cpp81 return is64Bit() ? wasm::R_WASM_TABLE_INDEX_REL_SLEB64 in getRelocType()
84 return is64Bit() ? wasm::R_WASM_MEMORY_ADDR_TLS_SLEB64 in getRelocType()
88 return is64Bit() ? wasm::R_WASM_MEMORY_ADDR_REL_SLEB64 in getRelocType()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DTapiFile.h53 bool is64Bit() const override { return MachO::is64Bit(Arch); }
56 bool is64Bit() const override { return MachO::is64Bit(Arch); } is64Bit() function
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchSubtarget.h94 bool is64Bit() const { return HasLA64; } in is64Bit() function
102 bool isXRaySupported() const override { return is64Bit(); } in isXRaySupported()
H A DLoongArchExpandPseudoInsts.cpp170 unsigned SecondOpcode = STI.is64Bit() ? LoongArch::ADDI_D : LoongArch::ADDI_W; in expandLoadAddressPcrel()
183 unsigned SecondOpcode = STI.is64Bit() ? LoongArch::LD_D : LoongArch::LD_W; in expandLoadAddressGot()
244 unsigned SecondOpcode = STI.is64Bit() ? LoongArch::LD_D : LoongArch::LD_W; in expandLoadAddressTLSIE()
257 unsigned SecondOpcode = STI.is64Bit() ? LoongArch::ADDI_D : LoongArch::ADDI_W; in expandLoadAddressTLSLD()
270 unsigned SecondOpcode = STI.is64Bit() ? LoongArch::ADDI_D : LoongArch::ADDI_W; in expandLoadAddressTLSGD()
289 unsigned ADD = STI.is64Bit() ? LoongArch::ADD_D : LoongArch::ADD_W; in expandLoadAddressTLSDesc()
290 unsigned ADDI = STI.is64Bit() ? LoongArch::ADDI_D : LoongArch::ADDI_W; in expandLoadAddressTLSDesc()
291 unsigned LD = STI.is64Bit() ? LoongArch::LD_D : LoongArch::LD_W; in expandLoadAddressTLSDesc()
540 assert(MBB.getParent()->getSubtarget<LoongArchSubtarget>().is64Bit() && in expandLargeAddressLoad()
639 assert(MBB.getParent()->getSubtarget<LoongArchSubtarget>().is64Bit() && in expandLoadAddressTLSDescPcLarge()
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCMachObjectWriter.h66 bool is64Bit() const { return Is64Bit; } in is64Bit() function
178 StringTable(TargetObjectWriter->is64Bit() ? StringTableBuilder::MachO64 in MachObjectWriter()
264 bool is64Bit() const { return TargetObjectWriter->is64Bit(); } in is64Bit() function
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVSubtarget.h165 bool is64Bit() const { return IsRV64; } in is64Bit() function
167 return is64Bit() ? MVT::i64 : MVT::i32; in getXLenVT()
170 return is64Bit() ? 64 : 32; in getXLen()
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXRegisterInfo.cpp135 return TM.is64Bit() ? NVPTX::VRFrame64 : NVPTX::VRFrame32; in getFrameRegister()
142 return TM.is64Bit() ? NVPTX::VRFrameLocal64 : NVPTX::VRFrameLocal32; in getFrameLocalRegister()

123456