@@ -51,6 +51,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5151#include "GenISAIntrinsics/GenIntrinsicInst.h"
5252#include "Compiler/IGCPassSupport.h"
5353#include "common/LLVMWarningsPush.hpp"
54+ #include "llvmWrapper/IR/Instructions.h"
5455#include "llvm/Support/Path.h"
5556#include "llvmWrapper/IR/Intrinsics.h"
5657#include "common/LLVMWarningsPop.hpp"
@@ -239,7 +240,7 @@ uint EmitPass::DecideInstanceAndSlice(llvm::BasicBlock& blk, SDAG& sdag, bool& s
239240 if (CallInst * callInst = dyn_cast<CallInst>(sdag.m_root))
240241 {
241242 // Disable slicing for function calls
242- Function* F = dyn_cast<Function>(callInst-> getCalledValue());
243+ Function* F = dyn_cast<Function>(IGCLLVM:: getCalledValue(callInst ));
243244 if (!F || F->hasFnAttribute("visaStackCall"))
244245 {
245246 numInstance = 1;
@@ -8204,7 +8205,7 @@ void EmitPass::EmitIntrinsicMessage(llvm::IntrinsicInst* inst)
82048205bool EmitPass::validateInlineAsmConstraints(llvm::CallInst* inst, SmallVector<StringRef, 8> & constraints)
82058206{
82068207 IGC_ASSERT(inst->isInlineAsm());
8207- InlineAsm* IA = cast<InlineAsm>(inst-> getCalledValue());
8208+ InlineAsm* IA = cast<InlineAsm>(IGCLLVM:: getCalledValue(inst ));
82088209 StringRef constraintStr(IA->getConstraintString());
82098210 if (constraintStr.empty()) return true;
82108211
@@ -8277,7 +8278,7 @@ bool EmitPass::validateInlineAsmConstraints(llvm::CallInst* inst, SmallVector<St
82778278void EmitPass::EmitInlineAsm(llvm::CallInst* inst)
82788279{
82798280 std::stringstream& str = m_encoder->GetVISABuilder()->GetAsmTextStream();
8280- InlineAsm* IA = cast<InlineAsm>(inst-> getCalledValue());
8281+ InlineAsm* IA = cast<InlineAsm>(IGCLLVM:: getCalledValue(inst ));
82818282 string asmStr = IA->getAsmString();
82828283 smallvector<CVariable*, 8> opnds;
82838284 SmallVector<StringRef, 8> constraints;
@@ -9874,7 +9875,7 @@ void EmitPass::emitStackCall(llvm::CallInst* inst)
98749875 }
98759876 };
98769877
9877- CVariable* funcAddr = GetSymbol(inst-> getCalledValue());
9878+ CVariable* funcAddr = GetSymbol(IGCLLVM:: getCalledValue(inst ));
98789879 if (!isIndirectFCall)
98799880 {
98809881 CopyArgBlkVariables();
0 commit comments