mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 07:00:57 +00:00
Add support for new intrinsic
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4ebc04945
commit
90ab32f9f0
@ -212,6 +212,7 @@ unsigned Function::getIntrinsicID() const {
|
||||
if (getName() == "llvm.dbg.region.start")return Intrinsic::dbg_region_start;
|
||||
if (getName() == "llvm.dbg.region.end") return Intrinsic::dbg_region_end;
|
||||
if (getName() == "llvm.dbg.func.start") return Intrinsic::dbg_func_start;
|
||||
if (getName() == "llvm.dbg.declare") return Intrinsic::dbg_declare;
|
||||
break;
|
||||
case 'l':
|
||||
if (getName() == "llvm.longjmp") return Intrinsic::longjmp;
|
||||
|
@ -553,6 +553,7 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) {
|
||||
case Intrinsic::dbg_region_start:NumArgs = 1; break;
|
||||
case Intrinsic::dbg_region_end: NumArgs = 1; break;
|
||||
case Intrinsic::dbg_func_start: NumArgs = 1; break;
|
||||
case Intrinsic::dbg_declare: NumArgs = 1; break;
|
||||
|
||||
case Intrinsic::alpha_ctlz: NumArgs = 1; break;
|
||||
case Intrinsic::alpha_cttz: NumArgs = 1; break;
|
||||
|
Loading…
Reference in New Issue
Block a user