/external/llvm/lib/Transforms/Scalar/ |
ConstantProp.cpp | 1 //===- ConstantProp.cpp - Code to perform Simple Constant Propagation -----===// 10 // This file implements constant propagation and merging: 24 #include "llvm/Constant.h" 54 "Simple constant propagation", false, false) 57 "Simple constant propagation", false, false) 78 if (Constant *C = ConstantFoldInstruction(I, TD, TLI)) { 80 // be constant propagatable now... 85 // Replace all of the uses of a variable with uses of the constant.
|
LoopUnswitch.cpp | 199 bool UnswitchIfProfitable(Value *LoopCond, Constant *Val); 200 void UnswitchTrivialCondition(Loop *L, Value *Cond, Constant *Val, 202 void UnswitchNontrivialCondition(Value *LIC, Constant *OnVal, Loop *L); 205 Constant *Val, bool isEqual); 207 void EmitPreheaderBranchOnCondition(Value *LIC, Constant *Val, 216 bool IsTrivialUnswitchCondition(Value *Cond, Constant **Val = 0, 353 if (isa<Constant>(Cond)) return 0; 451 Constant *UnswitchVal = NULL; 458 Constant* UnswitchValCandidate = i.getCaseValue(); 552 bool LoopUnswitch::IsTrivialUnswitchCondition(Value *Cond, Constant **Val [all...] |
Reassociate.cpp | 11 // to promote better constant propagation, GCSE, LICM, PRE, etc. 211 return 0; // Otherwise it's a global or constant, rank 0. 241 Constant *Cst = Constant::getAllOnesValue(Neg->getType()); 245 Neg->setOperand(1, Constant::getNullValue(Neg->getType())); // Drop use of op. 342 /// EvaluateRepeatedConstant - Compute C op C op ... op C where the constant C 344 static Constant *EvaluateRepeatedConstant(unsigned Opcode, Constant *C, 347 // constant and the weight. 353 Constant *Result = 0 [all...] |
/external/llvm/lib/VMCore/ |
User.cpp | 10 #include "llvm/Constant.h" 28 assert((!isa<Constant>(this) || isa<GlobalValue>(this)) && 29 "Cannot call User::replaceUsesOfWith on a constant!");
|
Module.cpp | 139 Constant *Module::getOrInsertFunction(StringRef Name, 158 Constant *NewF = getOrInsertFunction(Name, Ty); 172 Constant *Module::getOrInsertTargetIntrinsic(StringRef Name, 189 Constant *Module::getOrInsertFunction(StringRef Name, 199 Constant *Module::getOrInsertFunction(StringRef Name, 218 Constant *Module::getOrInsertFunction(StringRef Name, 269 Constant *Module::getOrInsertGlobal(StringRef Name, Type *Ty) {
|
/external/llvm/tools/opt/ |
AnalysisWrappers.cpp | 29 /// external functions that are called with constant arguments. This can be 30 /// useful when looking for standard library functions we should constant fold 50 if (!isa<Constant>(*AI)) continue;
|
/external/proguard/src/proguard/classfile/io/ |
LibraryClassReader.java | 24 import proguard.classfile.constant.*; 25 import proguard.classfile.constant.visitor.ConstantVisitor; 52 private Constant[] constantPool; 91 // Read the constant pool. Note that the first entry is not used. 94 // Create the constant pool array. 95 constantPool = new Constant[u2constantPoolCount]; 99 Constant constant = createConstant(); local 100 constant.accept(libraryClass, this); 102 int tag = constant.getTag() [all...] |
/external/proguard/src/proguard/classfile/visitor/ |
DotClassClassVisitor.java | 25 import proguard.classfile.constant.*; 26 import proguard.classfile.constant.visitor.ConstantVisitor; 83 public void visitAnyConstant(Clazz clazz, Constant constant) {}
|
/external/proguard/src/proguard/obfuscate/ |
NameAndTypeUsageMarker.java | 26 import proguard.classfile.constant.*; 27 import proguard.classfile.constant.visitor.ConstantVisitor; 32 * This ClassVisitor marks all NameAndType constant pool entries that are 45 // A visitor info flag to indicate the NameAndType constant pool entry is being used. 53 // Mark the NameAndType entries referenced by all other constant pool 65 public void visitAnyConstant(Clazz clazz, Constant constant) {} 109 * Marks the given UTF-8 constant pool entry of the given class.
|
/external/proguard/src/proguard/optimize/info/ |
DotClassMarker.java | 25 import proguard.classfile.constant.*; 26 import proguard.classfile.constant.visitor.ConstantVisitor; 61 public void visitAnyConstant(Clazz clazz, Constant constant) {}
|
MethodInvocationMarker.java | 25 import proguard.classfile.constant.*; 26 import proguard.classfile.constant.visitor.ConstantVisitor; 57 public void visitAnyConstant(Clazz clazz, Constant constant) {}
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
ValueEncoder.java | 21 import com.android.dexgen.rop.cst.Constant; 50 /** annotation value type constant: {@code byte} */ 53 /** annotation value type constant: {@code short} */ 56 /** annotation value type constant: {@code char} */ 59 /** annotation value type constant: {@code int} */ 62 /** annotation value type constant: {@code long} */ 65 /** annotation value type constant: {@code float} */ 68 /** annotation value type constant: {@code double} */ 71 /** annotation value type constant: {@code string} */ 74 /** annotation value type constant: {@code type} * [all...] |
AnnotationItem.java | 22 import com.android.dexgen.rop.cst.Constant; 37 /** annotation visibility constant: visible at build time only */ 40 /** annotation visibility constant: visible at runtime */ 43 /** annotation visibility constant: visible at runtime only to system */ 180 Constant value = pair.getValue();
|
/external/llvm/lib/Target/ARM/ |
ARMConstantPoolValue.cpp | 16 #include "llvm/Constant.h" 107 const Constant *C, 116 ARMConstantPoolConstant::ARMConstantPoolConstant(const Constant *C, 127 ARMConstantPoolConstant::Create(const Constant *C, unsigned ID) { 141 ARMConstantPoolConstant::Create(const Constant *C, unsigned ID, 148 ARMConstantPoolConstant::Create(const Constant *C, unsigned ID,
|
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineAddSub.cpp | 23 static Constant *AddOne(Constant *C) { 27 static Constant *SubOne(ConstantInt *C) { 33 // other computations (because it has a constant operand), return the 34 // non-constant operand of the multiply, and set CST to point to the multiplier. 135 Constant *ShAmt = ConstantInt::get(I.getType(), ExtendAmt); 154 if (isa<Constant>(RHS) && isa<PHINode>(LHS)) 173 if (!isa<Constant>(RHS)) 183 if (!isa<Constant>(RHS)) 268 // Try to fold constant add into select arguments [all...] |
InstCombineLoadStoreAlloca.cpp | 24 STATISTIC(NumGlobalCopies, "Number of allocas copied from constant global"); 27 /// some part of a constant global variable. This intentionally only accepts 28 /// constant expressions because we can't rewrite arbitrary instructions. 44 /// the alloca, and if the source pointer is a pointer to a constant global, we 131 // If the source of the memcpy/move is not a constant global, reject it. 142 /// modified by a copy from a constant global. If we can prove this, we can 185 // Convert: alloca Ty, C - where C is a constant != 1 into: alloca [C x Ty], 1 202 Value *NullIdx =Constant::getNullValue(Type::getInt32Ty(AI.getContext())); 214 return ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); 241 // dominance as the array size was forced to a constant earlier already [all...] |
InstCombineShifts.cpp | 30 // Try to fold constant and into select arguments. 31 if (isa<Constant>(Op0)) 71 if (isa<Constant>(V)) 116 // We can often fold the shift into shifts-by-a-constant. 140 // We can often fold the shift into shifts-by-a-constant. 186 if (Constant *C = dyn_cast<Constant>(V)) { 215 // We only accept shifts-by-a-constant in CanEvaluateShifted. 223 return Constant::getNullValue(I->getType()); 256 // We only accept shifts-by-a-constant in CanEvaluateShifted [all...] |
InstCombineVectorOps.cpp | 22 if (Constant *C = dyn_cast<Constant>(V)) { 26 Constant *Op0 = C->getAggregateElement(0U); 36 // this is constant idx extract element and its a constant idx insertelt. 66 if (Constant *C = dyn_cast<Constant>(V)) 100 // If vector val is constant with all elements the same, replace EI with 102 if (Constant *C = dyn_cast<Constant>(EI.getOperand(0)) [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
SelectionDAGBuilder.h | 132 const Constant *Low; 133 const Constant *High; 138 Case(const Constant *low, const Constant *high, MachineBasicBlock *bb, 168 CaseRec(MachineBasicBlock *bb, const Constant *lt, const Constant *ge, 176 const Constant *LT; 177 const Constant *GE; 304 DenseMap<const Constant *, unsigned> ConstantsOut;
|
/external/llvm/lib/CodeGen/ |
SjLjEHPrepare.cpp | 48 Constant *RegisterFn; 49 Constant *UnregisterFn; 50 Constant *BuiltinSetjmpFn; 51 Constant *FrameAddrFn; 52 Constant *StackAddrFn; 53 Constant *StackRestoreFn; 54 Constant *LSDAAddrFn; 56 Constant *CallSiteFn; 57 Constant *FuncCtxFn;
|
/external/llvm/lib/AsmParser/ |
LLParser.h | 34 class Constant; 64 Constant *ConstantVal; 67 Constant **ConstantStructElts; 318 // Constant Parsing. 320 bool ParseGlobalValue(Type *Ty, Constant *&V); 321 bool ParseGlobalTypeAndValue(Constant *&V); 322 bool ParseGlobalValueVector(SmallVectorImpl<Constant*> &Elts);
|
/external/clang/lib/CodeGen/ |
CodeGenFunction.h | 120 !llvm::is_base_of<llvm::Constant, T>::value && 412 /// Push a cleanup with non-constant storage requirements on the 655 llvm::Constant *BeginCatchFn; 667 llvm::Constant *beginCatchFn, llvm::Constant *endCatchFn, 668 llvm::Constant *rethrowFn); [all...] |
/dalvik/dexgen/src/com/android/dexgen/dex/code/ |
DalvInsnList.java | 19 import com.android.dexgen.rop.cst.Constant; 197 Constant cst = ((CstInsn) insn).getConstant(); 222 * lines for zero-size instructions and explicit constant pool indices
|
/dalvik/dexgen/src/com/android/dexgen/dex/code/form/ |
Form35c.java | 24 import com.android.dexgen.rop.cst.Constant; 86 Constant cst = ci.getConstant();
|
Form3rc.java | 24 import com.android.dexgen.rop.cst.Constant; 115 Constant cst = ci.getConstant();
|