forked from OSchip/llvm-project
[PGO] resubmit r268969
Put the test into a target specific directory. llvm-svn: 269090
This commit is contained in:
parent
8179be4897
commit
b6211a0b4f
|
@ -775,7 +775,7 @@ static void createIRLevelProfileFlagVariable(Module &M) {
|
|||
IRLevelVersionVariable->setVisibility(GlobalValue::DefaultVisibility);
|
||||
Triple TT(M.getTargetTriple());
|
||||
if (TT.isOSBinFormatMachO())
|
||||
IRLevelVersionVariable->setLinkage(GlobalValue::LinkOnceODRLinkage);
|
||||
IRLevelVersionVariable->setLinkage(GlobalValue::LinkOnceAnyLinkage);
|
||||
else
|
||||
IRLevelVersionVariable->setComdat(M.getOrInsertComdat(
|
||||
StringRef(INSTR_PROF_QUOTE(IR_LEVEL_PROF_VERSION_VAR))));
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
if not 'X86' in config.root.targets:
|
||||
config.unsupported = True
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
; RUN: opt < %s -pgo-instr-gen -instrprof -S | llc | FileCheck %s --check-prefix=MACHO-DIRECTIVE
|
||||
|
||||
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-apple-macosx10.11.0"
|
||||
|
||||
; MACHO-DIRECTIVE: .weak_definition ___llvm_profile_raw_version
|
||||
define i32 @test_macho(i32 %i) {
|
||||
entry:
|
||||
ret i32 %i
|
||||
}
|
Loading…
Reference in New Issue