Lines Matching defs:I
70 for (const GlobalVariable &I : M.globals()) {
72 *New, I.getValueType(), I.isConstant(), I.getLinkage(),
73 (Constant *)nullptr, I.getName(), (GlobalVariable *)nullptr,
74 I.getThreadLocalMode(), I.getType()->getAddressSpace());
75 NewGV->copyAttributesFrom(&I);
76 VMap[&I] = NewGV;
80 for (const Function &I : M) {
82 Function::Create(cast<FunctionType>(I.getValueType()), I.getLinkage(),
83 I.getAddressSpace(), I.getName(), New.get());
84 NF->copyAttributesFrom(&I);
85 VMap[&I] = NF;
89 for (const GlobalAlias &I : M.aliases()) {
90 if (!ShouldCloneDefinition(&I)) {
96 if (I.getValueType()->isFunctionTy())
97 GV = Function::Create(cast<FunctionType>(I.getValueType()),
98 GlobalValue::ExternalLinkage, I.getAddressSpace(),
99 I.getName(), New.get());
101 GV = new GlobalVariable(*New, I.getValueType(), false,
103 I.getName(), nullptr, I.getThreadLocalMode(),
104 I.getType()->getAddressSpace());
105 VMap[&I] = GV;
111 auto *GA = GlobalAlias::create(I.getValueType(),
112 I.getType()->getPointerAddressSpace(),
113 I.getLinkage(), I.getName(), New.get());
114 GA->copyAttributesFrom(&I);
115 VMap[&I] = GA;
118 for (const GlobalIFunc &I : M.ifuncs()) {
121 GlobalIFunc::create(I.getValueType(), I.getAddressSpace(),
122 I.getLinkage(), I.getName(), nullptr, New.get());
123 GI->copyAttributesFrom(&I);
124 VMap[&I] = GI;
155 for (const Function &I : M) {
156 Function *F = cast<Function>(VMap[&I]);
158 if (I.isDeclaration()) {
162 I.getAllMetadata(MDs);
168 if (!ShouldCloneDefinition(&I)) {
177 for (const Argument &J : I.args()) {
183 CloneFunctionInto(F, &I, VMap, CloneFunctionChangeType::ClonedModule,
186 if (I.hasPersonalityFn())
187 F->setPersonalityFn(MapValue(I.getPersonalityFn(), VMap));
189 copyComdat(F, &I);
193 for (const GlobalAlias &I : M.aliases()) {
195 if (!ShouldCloneDefinition(&I))
197 GlobalAlias *GA = cast<GlobalAlias>(VMap[&I]);
198 if (const Constant *C = I.getAliasee())
202 for (const GlobalIFunc &I : M.ifuncs()) {
203 GlobalIFunc *GI = cast<GlobalIFunc>(VMap[&I]);
204 if (const Constant *Resolver = I.getResolver())