Displaying 3 results from an estimated 3 matches for "parsememoryinst".
2018 Feb 06
2
6 separate instances of static getPointerOperand(). Time to consolidate?
...struction.
static Value *getPointerOperand(Value *I) {
if (auto *LI = dyn_cast<LoadInst>(I))
return LI->getPointerOperand();
if (auto *SI = dyn_cast<StoreInst>(I))
return SI->getPointerOperand();
return nullptr;
}
------------ Transforms/Scalar/EarlyCSE.cpp class ParseMemoryInst
Value *getPointerOperand() const {
if (IsTargetMemInst) return Info.PtrVal;
if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
return LI->getPointerOperand();
} else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
return SI->getPointerOperand();...
2018 Feb 06
0
6 separate instances of static getPointerOperand(). Time to consolidate?
...and(Value *I) {
> if (auto *LI = dyn_cast<LoadInst>(I))
> return LI->getPointerOperand();
> if (auto *SI = dyn_cast<StoreInst>(I))
> return SI->getPointerOperand();
> return nullptr;
> }
>
> ------------ Transforms/Scalar/EarlyCSE.cpp class ParseMemoryInst
>
> Value *getPointerOperand() const {
> if (IsTargetMemInst) return Info.PtrVal;
> if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
> return LI->getPointerOperand();
> } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
>...
2018 Feb 06
1
6 separate instances of static getPointerOperand(). Time to consolidate?
...and(Value *I) {
> if (auto *LI = dyn_cast<LoadInst>(I))
> return LI->getPointerOperand();
> if (auto *SI = dyn_cast<StoreInst>(I))
> return SI->getPointerOperand();
> return nullptr;
> }
>
> ------------ Transforms/Scalar/EarlyCSE.cpp class ParseMemoryInst
>
> Value *getPointerOperand() const {
> if (IsTargetMemInst) return Info.PtrVal;
> if (LoadInst *LI = dyn_cast<LoadInst>(Inst)) {
> return LI->getPointerOperand();
> } else if (StoreInst *SI = dyn_cast<StoreInst>(Inst)) {
>...