Revert "Use llvmL1 as type for Intemediate binary type"

This reverts commit a9faf0aecb.

Change-Id: Ib395536be436d3fbe592dd438b2fc2c839135eca
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Plewka, Maciej
2019-04-10 01:12:29 -08:00
committed by sys_ocldev
parent 7cf5ef6627
commit 19beaf6bd7
4 changed files with 2 additions and 24 deletions

View File

@@ -961,23 +961,3 @@ TEST_F(CompilerInterfaceTest, whenRequestingSipKernelBinaryThenProperInternalOpt
gEnvironment->igcPopDebugVars();
}
TEST_F(CompilerInterfaceTest, givenCompilerIntefraceWithIntermediateAndUseLlvmTextWhenBuildThenCodeTypeEqualLlvmL1) {
std::unique_ptr<MockProgram> mockProgram(new MockProgram(pProgram->peekExecutionEnvironment()));
mockProgram->setDevice(pDevice);
mockProgram->programBinaryType = CL_PROGRAM_BINARY_TYPE_INTERMEDIATE;
pCompilerInterface->useLlvmText = true;
pCompilerInterface->failCreateIgcTranslationCtx = true;
retVal = pCompilerInterface->build(*mockProgram.get(), inputArgs, false);
EXPECT_EQ(IGC::CodeType::llvmLl, pCompilerInterface->intermediateInType);
}
TEST_F(CompilerInterfaceTest, givenCompilerIntefraceWithIntermediateAndUseLlvmTextSetToFalseWhenBuildThenCodeTypeEqualllvmBc) {
std::unique_ptr<MockProgram> mockProgram(new MockProgram(pProgram->peekExecutionEnvironment()));
mockProgram->setDevice(pDevice);
mockProgram->programBinaryType = CL_PROGRAM_BINARY_TYPE_INTERMEDIATE;
pCompilerInterface->useLlvmText = false;
pCompilerInterface->failCreateIgcTranslationCtx = true;
retVal = pCompilerInterface->build(*mockProgram.get(), inputArgs, false);
EXPECT_EQ(IGC::CodeType::llvmBc, pCompilerInterface->intermediateInType);
}