Skip to content

Commit ad4911d

Browse files
committed
[llvm] Create UEFI helper function
Create useful helper function for UEFI 64 bit target that can be used in tablegen files in future changes.
1 parent 052a4b5 commit ad4911d

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)