Add custom opcode BooleanNot

This commit is contained in:
Valentina Sona
2023-04-19 22:06:19 +02:00
committed by Pietro Fezzardi
parent aa63ede37b
commit 8dfd7c2d96
5 changed files with 43 additions and 8 deletions
+3
View File
@@ -236,6 +236,9 @@ static TypeVector getReturnTypes(FunctionMetadataCache &Cache,
ReturnTypes.push_back(llvmIntToModelType(Arg->getType(), Model));
} else if (FunctionTags::BinaryNot.isTagOf(CalledFunc)) {
ReturnTypes.push_back(llvmIntToModelType(Call->getType(), Model));
} else if (FunctionTags::BooleanNot.isTagOf(CalledFunc)) {
auto IntType = llvm::IntegerType::getInt1Ty(CalledFunc->getContext());
ReturnTypes.push_back(llvmIntToModelType(IntType, Model));
} else {
revng_abort("Unknown non-isolated function");
}