Skip to content

Commit 04b6f54

Browse files
authored
[NFC][llvm] Create UEFI helper function (#132462)
Create useful helper functions for UEFI 64 bit target that can be used in tablegen files in future changes.
1 parent 2e353a6 commit 04b6f54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/X86/X86Subtarget.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,9 @@ class X86Subtarget final : public X86GenSubtargetInfo {
331331

332332
bool isOSWindows() const { return TargetTriple.isOSWindows(); }
333333

334-
bool isOSWindowsOrUEFI() const { return isOSWindows() || isUEFI(); }
334+
bool isOSWindowsOrUEFI() const { return TargetTriple.isOSWindowsOrUEFI(); }
335+
336+
bool isTargetUEFI64() const { return Is64Bit && isUEFI(); }
335337

336338
bool isTargetWin64() const { return Is64Bit && isOSWindows(); }
337339

0 commit comments

Comments
 (0)