blob: b82b03f7d9e7d198ddc159b680ba43871da8a4b6 [file] [log] [blame]
Chris Lattner2a365452010-08-26 01:13:54 +00001//===-- StructRetPromotion.cpp - Promote sret arguments -------------------===//
Devang Patelca891ec2008-02-29 23:34:08 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
Gordon Henriksena8a118b2008-05-08 17:46:35 +000010// This pass finds functions that return a struct (using a pointer to the struct
11// as the first argument of the function, marked with the 'sret' attribute) and
12// replaces them with a new function that simply returns each of the elements of
13// that struct (using multiple return values).
14//
15// This pass works under a number of conditions:
16// 1. The returned struct must not contain other structs
17// 2. The returned struct must only be used to load values from
18// 3. The placeholder struct passed in is the result of an alloca
19//
Devang Patelca891ec2008-02-29 23:34:08 +000020//===----------------------------------------------------------------------===//
21
22#define DEBUG_TYPE "sretpromotion"
23#include "llvm/Transforms/IPO.h"
24#include "llvm/Constants.h"
25#include "llvm/DerivedTypes.h"
Owen Anderson14ce9ef2009-07-06 01:34:54 +000026#include "llvm/LLVMContext.h"
Devang Patelca891ec2008-02-29 23:34:08 +000027#include "llvm/Module.h"
28#include "llvm/CallGraphSCCPass.h"
29#include "llvm/Instructions.h"
30#include "llvm/Analysis/CallGraph.h"
31#include "llvm/Support/CallSite.h"
32#include "llvm/Support/CFG.h"
33#include "llvm/Support/Debug.h"
34#include "llvm/ADT/Statistic.h"
35#include "llvm/ADT/SmallVector.h"
Devang Patel98a6e062008-03-04 17:44:37 +000036#include "llvm/ADT/Statistic.h"
Daniel Dunbar460f6562009-07-26 09:48:23 +000037#include "llvm/Support/raw_ostream.h"
Devang Patelca891ec2008-02-29 23:34:08 +000038using namespace llvm;
39
Devang Patel98a6e062008-03-04 17:44:37 +000040STATISTIC(NumRejectedSRETUses , "Number of sret rejected due to unexpected uses");
41STATISTIC(NumSRET , "Number of sret promoted");
Devang Patelca891ec2008-02-29 23:34:08 +000042namespace {
43 /// SRETPromotion - This pass removes sret parameter and updates
44 /// function to use multiple return value.
45 ///
Nick Lewycky6726b6d2009-10-25 06:33:48 +000046 struct SRETPromotion : public CallGraphSCCPass {
Devang Patelca891ec2008-02-29 23:34:08 +000047 virtual void getAnalysisUsage(AnalysisUsage &AU) const {
48 CallGraphSCCPass::getAnalysisUsage(AU);
49 }
50
Chris Lattner2decb222010-04-16 22:42:17 +000051 virtual bool runOnSCC(CallGraphSCC &SCC);
Devang Patelca891ec2008-02-29 23:34:08 +000052 static char ID; // Pass identification, replacement for typeid
Owen Anderson90c579d2010-08-06 18:33:48 +000053 SRETPromotion() : CallGraphSCCPass(ID) {}
Devang Patelca891ec2008-02-29 23:34:08 +000054
55 private:
Chris Lattner5095e3d2009-08-31 00:19:58 +000056 CallGraphNode *PromoteReturn(CallGraphNode *CGN);
Devang Patelca891ec2008-02-29 23:34:08 +000057 bool isSafeToUpdateAllCallers(Function *F);
58 Function *cloneFunctionBody(Function *F, const StructType *STy);
Chris Lattner5095e3d2009-08-31 00:19:58 +000059 CallGraphNode *updateCallSites(Function *F, Function *NF);
Devang Patelca891ec2008-02-29 23:34:08 +000060 };
Devang Patelca891ec2008-02-29 23:34:08 +000061}
62
Dan Gohman844731a2008-05-13 00:00:25 +000063char SRETPromotion::ID = 0;
Owen Andersond13db2c2010-07-21 22:09:45 +000064INITIALIZE_PASS(SRETPromotion, "sretpromotion",
65 "Promote sret arguments to multiple ret values", false, false);
Dan Gohman844731a2008-05-13 00:00:25 +000066
Devang Patelca891ec2008-02-29 23:34:08 +000067Pass *llvm::createStructRetPromotionPass() {
68 return new SRETPromotion();
69}
70
Chris Lattner2decb222010-04-16 22:42:17 +000071bool SRETPromotion::runOnSCC(CallGraphSCC &SCC) {
Devang Patelca891ec2008-02-29 23:34:08 +000072 bool Changed = false;
73
Chris Lattner2decb222010-04-16 22:42:17 +000074 for (CallGraphSCC::iterator I = SCC.begin(), E = SCC.end(); I != E; ++I)
75 if (CallGraphNode *NewNode = PromoteReturn(*I)) {
76 SCC.ReplaceNode(*I, NewNode);
Chris Lattner5095e3d2009-08-31 00:19:58 +000077 Changed = true;
78 }
Devang Patelca891ec2008-02-29 23:34:08 +000079
80 return Changed;
81}
82
83/// PromoteReturn - This method promotes function that uses StructRet paramater
Chris Lattner5095e3d2009-08-31 00:19:58 +000084/// into a function that uses multiple return values.
85CallGraphNode *SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
Devang Patelca891ec2008-02-29 23:34:08 +000086 Function *F = CGN->getFunction();
87
Rafael Espindolabb46f522009-01-15 20:18:42 +000088 if (!F || F->isDeclaration() || !F->hasLocalLinkage())
Chris Lattner5095e3d2009-08-31 00:19:58 +000089 return 0;
Devang Patelca891ec2008-02-29 23:34:08 +000090
91 // Make sure that function returns struct.
Devang Patel41e23972008-03-03 21:46:28 +000092 if (F->arg_size() == 0 || !F->hasStructRetAttr() || F->doesNotReturn())
Chris Lattner5095e3d2009-08-31 00:19:58 +000093 return 0;
Devang Patelca891ec2008-02-29 23:34:08 +000094
David Greene09d70db2010-01-05 01:27:54 +000095 DEBUG(dbgs() << "SretPromotion: Looking at sret function "
Daniel Dunbar460f6562009-07-26 09:48:23 +000096 << F->getName() << "\n");
Matthijs Kooijman81ec2482008-08-07 15:14:04 +000097
Benjamin Kramerf0127052010-01-05 13:12:22 +000098 assert(F->getReturnType()->isVoidTy() && "Invalid function return type");
Devang Patelca891ec2008-02-29 23:34:08 +000099 Function::arg_iterator AI = F->arg_begin();
100 const llvm::PointerType *FArgType = dyn_cast<PointerType>(AI->getType());
Chris Lattner5095e3d2009-08-31 00:19:58 +0000101 assert(FArgType && "Invalid sret parameter type");
Devang Patelca891ec2008-02-29 23:34:08 +0000102 const llvm::StructType *STy =
103 dyn_cast<StructType>(FArgType->getElementType());
Chris Lattner5095e3d2009-08-31 00:19:58 +0000104 assert(STy && "Invalid sret parameter element type");
Devang Patelca891ec2008-02-29 23:34:08 +0000105
106 // Check if it is ok to perform this promotion.
Devang Patel98a6e062008-03-04 17:44:37 +0000107 if (isSafeToUpdateAllCallers(F) == false) {
David Greene09d70db2010-01-05 01:27:54 +0000108 DEBUG(dbgs() << "SretPromotion: Not all callers can be updated\n");
Dan Gohmanfe601042010-06-22 15:08:57 +0000109 ++NumRejectedSRETUses;
Chris Lattner5095e3d2009-08-31 00:19:58 +0000110 return 0;
Devang Patel98a6e062008-03-04 17:44:37 +0000111 }
Devang Patelca891ec2008-02-29 23:34:08 +0000112
David Greene09d70db2010-01-05 01:27:54 +0000113 DEBUG(dbgs() << "SretPromotion: sret argument will be promoted\n");
Dan Gohmanfe601042010-06-22 15:08:57 +0000114 ++NumSRET;
Devang Patelca891ec2008-02-29 23:34:08 +0000115 // [1] Replace use of sret parameter
Owen Anderson50dead02009-07-15 23:53:25 +0000116 AllocaInst *TheAlloca = new AllocaInst(STy, NULL, "mrv",
117 F->getEntryBlock().begin());
Devang Patelca891ec2008-02-29 23:34:08 +0000118 Value *NFirstArg = F->arg_begin();
119 NFirstArg->replaceAllUsesWith(TheAlloca);
120
Devang Patel98a6e062008-03-04 17:44:37 +0000121 // [2] Find and replace ret instructions
Devang Patelca891ec2008-02-29 23:34:08 +0000122 for (Function::iterator FI = F->begin(), FE = F->end(); FI != FE; ++FI)
123 for(BasicBlock::iterator BI = FI->begin(), BE = FI->end(); BI != BE; ) {
124 Instruction *I = BI;
125 ++BI;
126 if (isa<ReturnInst>(I)) {
Dan Gohmanfc74abf2008-07-23 00:34:11 +0000127 Value *NV = new LoadInst(TheAlloca, "mrv.ld", I);
Owen Anderson1d0be152009-08-13 21:58:54 +0000128 ReturnInst *NR = ReturnInst::Create(F->getContext(), NV, I);
Devang Patelca891ec2008-02-29 23:34:08 +0000129 I->replaceAllUsesWith(NR);
130 I->eraseFromParent();
131 }
132 }
133
Devang Patel98a6e062008-03-04 17:44:37 +0000134 // [3] Create the new function body and insert it into the module.
Devang Patelca891ec2008-02-29 23:34:08 +0000135 Function *NF = cloneFunctionBody(F, STy);
136
Devang Patel98a6e062008-03-04 17:44:37 +0000137 // [4] Update all call sites to use new function
Chris Lattner5095e3d2009-08-31 00:19:58 +0000138 CallGraphNode *NF_CFN = updateCallSites(F, NF);
Devang Patelca891ec2008-02-29 23:34:08 +0000139
Chris Lattner5095e3d2009-08-31 00:19:58 +0000140 CallGraph &CG = getAnalysis<CallGraph>();
141 NF_CFN->stealCalledFunctionsFrom(CG[F]);
142
143 delete CG.removeFunctionFromModule(F);
144 return NF_CFN;
Devang Patelca891ec2008-02-29 23:34:08 +0000145}
146
Duncan Sands33af59d2008-05-09 12:20:10 +0000147// Check if it is ok to perform this promotion.
Devang Patelca891ec2008-02-29 23:34:08 +0000148bool SRETPromotion::isSafeToUpdateAllCallers(Function *F) {
149
150 if (F->use_empty())
151 // No users. OK to modify signature.
152 return true;
153
154 for (Value::use_iterator FnUseI = F->use_begin(), FnUseE = F->use_end();
155 FnUseI != FnUseE; ++FnUseI) {
Matthijs Kooijman257da0a2008-06-05 08:48:32 +0000156 // The function is passed in as an argument to (possibly) another function,
157 // we can't change it!
Gabor Greif7d3056b2010-07-28 22:50:26 +0000158 CallSite CS(*FnUseI);
Devang Patelca891ec2008-02-29 23:34:08 +0000159 Instruction *Call = CS.getInstruction();
Matthijs Kooijman47c6fd72008-06-05 08:57:20 +0000160 // The function is used by something else than a call or invoke instruction,
161 // we can't change it!
Gabor Greifedc4d692009-01-22 21:35:57 +0000162 if (!Call || !CS.isCallee(FnUseI))
Matthijs Kooijman47c6fd72008-06-05 08:57:20 +0000163 return false;
Devang Patelca891ec2008-02-29 23:34:08 +0000164 CallSite::arg_iterator AI = CS.arg_begin();
165 Value *FirstArg = *AI;
166
167 if (!isa<AllocaInst>(FirstArg))
168 return false;
169
170 // Check FirstArg's users.
171 for (Value::use_iterator ArgI = FirstArg->use_begin(),
172 ArgE = FirstArg->use_end(); ArgI != ArgE; ++ArgI) {
Gabor Greiffc41f902010-07-12 11:19:24 +0000173 User *U = *ArgI;
Devang Patelca891ec2008-02-29 23:34:08 +0000174 // If FirstArg user is a CallInst that does not correspond to current
175 // call site then this function F is not suitable for sret promotion.
Gabor Greiffc41f902010-07-12 11:19:24 +0000176 if (CallInst *CI = dyn_cast<CallInst>(U)) {
Devang Patelca891ec2008-02-29 23:34:08 +0000177 if (CI != Call)
178 return false;
179 }
180 // If FirstArg user is a GEP whose all users are not LoadInst then
181 // this function F is not suitable for sret promotion.
Gabor Greiffc41f902010-07-12 11:19:24 +0000182 else if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(U)) {
Devang Patele0a6a3f2008-03-05 23:39:23 +0000183 // TODO : Use dom info and insert PHINodes to collect get results
184 // from multiple call sites for this GEP.
185 if (GEP->getParent() != Call->getParent())
186 return false;
Devang Patelca891ec2008-02-29 23:34:08 +0000187 for (Value::use_iterator GEPI = GEP->use_begin(), GEPE = GEP->use_end();
188 GEPI != GEPE; ++GEPI)
Gabor Greif96f1d8e2010-07-22 13:36:47 +0000189 if (!isa<LoadInst>(*GEPI))
Devang Patelca891ec2008-02-29 23:34:08 +0000190 return false;
191 }
192 // Any other FirstArg users make this function unsuitable for sret
193 // promotion.
194 else
195 return false;
196 }
197 }
198
199 return true;
200}
201
202/// cloneFunctionBody - Create a new function based on F and
203/// insert it into module. Remove first argument. Use STy as
204/// the return type for new function.
205Function *SRETPromotion::cloneFunctionBody(Function *F,
206 const StructType *STy) {
207
Devang Patelca891ec2008-02-29 23:34:08 +0000208 const FunctionType *FTy = F->getFunctionType();
209 std::vector<const Type*> Params;
210
Devang Patel05988662008-09-25 21:00:45 +0000211 // Attributes - Keep track of the parameter attributes for the arguments.
212 SmallVector<AttributeWithIndex, 8> AttributesVec;
213 const AttrListPtr &PAL = F->getAttributes();
Devang Patel2a4821b2008-03-03 18:36:03 +0000214
215 // Add any return attributes.
Devang Patel19c87462008-09-26 22:53:05 +0000216 if (Attributes attrs = PAL.getRetAttributes())
Devang Patel05988662008-09-25 21:00:45 +0000217 AttributesVec.push_back(AttributeWithIndex::get(0, attrs));
Devang Patel2a4821b2008-03-03 18:36:03 +0000218
Devang Patelca891ec2008-02-29 23:34:08 +0000219 // Skip first argument.
220 Function::arg_iterator I = F->arg_begin(), E = F->arg_end();
221 ++I;
Devang Patel8f9b5512008-03-12 00:07:03 +0000222 // 0th parameter attribute is reserved for return type.
223 // 1th parameter attribute is for first 1st sret argument.
224 unsigned ParamIndex = 2;
Devang Patelca891ec2008-02-29 23:34:08 +0000225 while (I != E) {
226 Params.push_back(I->getType());
Devang Patel19c87462008-09-26 22:53:05 +0000227 if (Attributes Attrs = PAL.getParamAttributes(ParamIndex))
Devang Patel05988662008-09-25 21:00:45 +0000228 AttributesVec.push_back(AttributeWithIndex::get(ParamIndex - 1, Attrs));
Devang Patelca891ec2008-02-29 23:34:08 +0000229 ++I;
Devang Patel2a4821b2008-03-03 18:36:03 +0000230 ++ParamIndex;
Devang Patelca891ec2008-02-29 23:34:08 +0000231 }
232
Devang Patel19c87462008-09-26 22:53:05 +0000233 // Add any fn attributes.
234 if (Attributes attrs = PAL.getFnAttributes())
235 AttributesVec.push_back(AttributeWithIndex::get(~0, attrs));
236
237
Owen Andersondebcb012009-07-29 22:17:13 +0000238 FunctionType *NFTy = FunctionType::get(STy, Params, FTy->isVarArg());
Matthijs Kooijman7d942002008-08-07 16:01:23 +0000239 Function *NF = Function::Create(NFTy, F->getLinkage());
240 NF->takeName(F);
Duncan Sands28c3cff2008-05-26 19:58:59 +0000241 NF->copyAttributesFrom(F);
Devang Patel05988662008-09-25 21:00:45 +0000242 NF->setAttributes(AttrListPtr::get(AttributesVec.begin(), AttributesVec.end()));
Devang Patelca891ec2008-02-29 23:34:08 +0000243 F->getParent()->getFunctionList().insert(F, NF);
244 NF->getBasicBlockList().splice(NF->begin(), F->getBasicBlockList());
245
246 // Replace arguments
247 I = F->arg_begin();
248 E = F->arg_end();
249 Function::arg_iterator NI = NF->arg_begin();
250 ++I;
251 while (I != E) {
Chris Lattner5095e3d2009-08-31 00:19:58 +0000252 I->replaceAllUsesWith(NI);
253 NI->takeName(I);
254 ++I;
255 ++NI;
Devang Patelca891ec2008-02-29 23:34:08 +0000256 }
257
258 return NF;
259}
260
261/// updateCallSites - Update all sites that call F to use NF.
Chris Lattner5095e3d2009-08-31 00:19:58 +0000262CallGraphNode *SRETPromotion::updateCallSites(Function *F, Function *NF) {
Duncan Sandsa9c32512008-09-08 11:08:09 +0000263 CallGraph &CG = getAnalysis<CallGraph>();
Devang Patelca891ec2008-02-29 23:34:08 +0000264 SmallVector<Value*, 16> Args;
265
Devang Patel05988662008-09-25 21:00:45 +0000266 // Attributes - Keep track of the parameter attributes for the arguments.
267 SmallVector<AttributeWithIndex, 8> ArgAttrsVec;
Devang Patel2a4821b2008-03-03 18:36:03 +0000268
Chris Lattner5095e3d2009-08-31 00:19:58 +0000269 // Get a new callgraph node for NF.
270 CallGraphNode *NF_CGN = CG.getOrInsertFunction(NF);
271
Matthijs Kooijmanc1f1d462008-08-14 15:03:05 +0000272 while (!F->use_empty()) {
Gabor Greif7d3056b2010-07-28 22:50:26 +0000273 CallSite CS(*F->use_begin());
Devang Patelca891ec2008-02-29 23:34:08 +0000274 Instruction *Call = CS.getInstruction();
275
Devang Patel05988662008-09-25 21:00:45 +0000276 const AttrListPtr &PAL = F->getAttributes();
Devang Patel2a4821b2008-03-03 18:36:03 +0000277 // Add any return attributes.
Devang Patel19c87462008-09-26 22:53:05 +0000278 if (Attributes attrs = PAL.getRetAttributes())
Devang Patel05988662008-09-25 21:00:45 +0000279 ArgAttrsVec.push_back(AttributeWithIndex::get(0, attrs));
Devang Patel2a4821b2008-03-03 18:36:03 +0000280
Devang Patelca891ec2008-02-29 23:34:08 +0000281 // Copy arguments, however skip first one.
282 CallSite::arg_iterator AI = CS.arg_begin(), AE = CS.arg_end();
283 Value *FirstCArg = *AI;
284 ++AI;
Devang Patel8f9b5512008-03-12 00:07:03 +0000285 // 0th parameter attribute is reserved for return type.
286 // 1th parameter attribute is for first 1st sret argument.
287 unsigned ParamIndex = 2;
Devang Patelca891ec2008-02-29 23:34:08 +0000288 while (AI != AE) {
289 Args.push_back(*AI);
Devang Patel19c87462008-09-26 22:53:05 +0000290 if (Attributes Attrs = PAL.getParamAttributes(ParamIndex))
Devang Patel05988662008-09-25 21:00:45 +0000291 ArgAttrsVec.push_back(AttributeWithIndex::get(ParamIndex - 1, Attrs));
Devang Patel2a4821b2008-03-03 18:36:03 +0000292 ++ParamIndex;
Devang Patelca891ec2008-02-29 23:34:08 +0000293 ++AI;
294 }
295
Devang Patel19c87462008-09-26 22:53:05 +0000296 // Add any function attributes.
297 if (Attributes attrs = PAL.getFnAttributes())
298 ArgAttrsVec.push_back(AttributeWithIndex::get(~0, attrs));
Chris Lattner58d74912008-03-12 17:45:29 +0000299
Devang Patel05988662008-09-25 21:00:45 +0000300 AttrListPtr NewPAL = AttrListPtr::get(ArgAttrsVec.begin(), ArgAttrsVec.end());
Chris Lattner58d74912008-03-12 17:45:29 +0000301
Devang Patelca891ec2008-02-29 23:34:08 +0000302 // Build new call instruction.
303 Instruction *New;
304 if (InvokeInst *II = dyn_cast<InvokeInst>(Call)) {
Gabor Greif051a9502008-04-06 20:25:17 +0000305 New = InvokeInst::Create(NF, II->getNormalDest(), II->getUnwindDest(),
306 Args.begin(), Args.end(), "", Call);
Devang Patelca891ec2008-02-29 23:34:08 +0000307 cast<InvokeInst>(New)->setCallingConv(CS.getCallingConv());
Devang Patel05988662008-09-25 21:00:45 +0000308 cast<InvokeInst>(New)->setAttributes(NewPAL);
Devang Patelca891ec2008-02-29 23:34:08 +0000309 } else {
Gabor Greif051a9502008-04-06 20:25:17 +0000310 New = CallInst::Create(NF, Args.begin(), Args.end(), "", Call);
Devang Patelca891ec2008-02-29 23:34:08 +0000311 cast<CallInst>(New)->setCallingConv(CS.getCallingConv());
Devang Patel05988662008-09-25 21:00:45 +0000312 cast<CallInst>(New)->setAttributes(NewPAL);
Devang Patelca891ec2008-02-29 23:34:08 +0000313 if (cast<CallInst>(Call)->isTailCall())
314 cast<CallInst>(New)->setTailCall();
315 }
316 Args.clear();
Devang Patel544b92b2008-03-04 19:12:58 +0000317 ArgAttrsVec.clear();
Devang Patelca891ec2008-02-29 23:34:08 +0000318 New->takeName(Call);
319
Duncan Sandsa9c32512008-09-08 11:08:09 +0000320 // Update the callgraph to know that the callsite has been transformed.
Chris Lattnerda230cb2009-09-01 18:52:39 +0000321 CallGraphNode *CalleeNode = CG[Call->getParent()->getParent()];
322 CalleeNode->removeCallEdgeFor(Call);
323 CalleeNode->addCalledFunction(New, NF_CGN);
Chris Lattner7c8c1ba2009-09-01 18:50:55 +0000324
Dan Gohmanfc74abf2008-07-23 00:34:11 +0000325 // Update all users of sret parameter to extract value using extractvalue.
Devang Patelca891ec2008-02-29 23:34:08 +0000326 for (Value::use_iterator UI = FirstCArg->use_begin(),
327 UE = FirstCArg->use_end(); UI != UE; ) {
328 User *U2 = *UI++;
329 CallInst *C2 = dyn_cast<CallInst>(U2);
330 if (C2 && (C2 == Call))
331 continue;
Chris Lattner5095e3d2009-08-31 00:19:58 +0000332
Chris Lattner7c8c1ba2009-09-01 18:50:55 +0000333 GetElementPtrInst *UGEP = cast<GetElementPtrInst>(U2);
334 ConstantInt *Idx = cast<ConstantInt>(UGEP->getOperand(2));
335 Value *GR = ExtractValueInst::Create(New, Idx->getZExtValue(),
336 "evi", UGEP);
337 while(!UGEP->use_empty()) {
338 // isSafeToUpdateAllCallers has checked that all GEP uses are
339 // LoadInsts
340 LoadInst *L = cast<LoadInst>(*UGEP->use_begin());
341 L->replaceAllUsesWith(GR);
342 L->eraseFromParent();
Devang Patelca891ec2008-02-29 23:34:08 +0000343 }
Chris Lattner7c8c1ba2009-09-01 18:50:55 +0000344 UGEP->eraseFromParent();
345 continue;
Devang Patelca891ec2008-02-29 23:34:08 +0000346 }
347 Call->eraseFromParent();
348 }
Chris Lattner5095e3d2009-08-31 00:19:58 +0000349
350 return NF_CGN;
Devang Patelca891ec2008-02-29 23:34:08 +0000351}
Devang Patela9fe8bb2008-03-04 21:32:09 +0000352