mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-07 20:04:03 +00:00
Add a CreateFNeg function to IRBuilder.
llvm-svn: 73437
This commit is contained in:
parent
255bcad466
commit
cccda40191
@ -291,6 +291,11 @@ public:
|
|||||||
return Folder.CreateNeg(VC);
|
return Folder.CreateNeg(VC);
|
||||||
return Insert(BinaryOperator::CreateNeg(V), Name);
|
return Insert(BinaryOperator::CreateNeg(V), Name);
|
||||||
}
|
}
|
||||||
|
Value *CreateFNeg(Value *V, const char *Name = "") {
|
||||||
|
if (Constant *VC = dyn_cast<Constant>(V))
|
||||||
|
return Folder.CreateFNeg(VC);
|
||||||
|
return Insert(BinaryOperator::CreateFNeg(V), Name);
|
||||||
|
}
|
||||||
Value *CreateNot(Value *V, const char *Name = "") {
|
Value *CreateNot(Value *V, const char *Name = "") {
|
||||||
if (Constant *VC = dyn_cast<Constant>(V))
|
if (Constant *VC = dyn_cast<Constant>(V))
|
||||||
return Folder.CreateNot(VC);
|
return Folder.CreateNot(VC);
|
||||||
|
Loading…
Reference in New Issue
Block a user