MCPcopy Create free account
hub / github.com/Samsung/UTopia / isUnionFieldAccess

Function isUnionFieldAccess

lib/propanalysis/ArgFlow.cpp:75–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73} // namespace
74
75bool isUnionFieldAccess(const llvm::Instruction *I) {
76 if (I->getNumOperands() == 0)
77 return false;
78
79 auto *Op0 = I->getOperand(0);
80 if (!Op0)
81 return false;
82
83 return isa<BitCastInst>(I) &&
84 getTypeStr(Op0->getType()).split('.').first == "union";
85}
86
87ArgFlow::ArgFlow(Argument &A) : Arg(A) {}
88

Callers 3

findRelatedArgMethod · 0.85
findRelatedFieldMethod · 0.85
handleUserMethod · 0.85

Calls 2

getTypeStrFunction · 0.85
getTypeMethod · 0.45

Tested by

no test coverage detected