Searched defs:Const (Results 1 - 25 of 46) sorted by relevance

12

/external/clang/test/SemaTemplate/
H A Dalias-church-numerals.cpp29 template<typename T, T N> struct Const { static const T value = N; }; struct
31 template<typename T, T N> struct IncrementHelper<Const<T, N>> { using Result = Const<T, N+1>; };
34 using Arr = int[TwoHundredAndFiftySix<Increment, Const<int, 0>>::value];
H A Ddeduction.cpp127 template<typename T> struct Const { typedef void const type; }; struct in namespace:test2
129 template<typename T> void f(T, typename Const<T>::type*);
/external/jacoco/org.jacoco.examples/build/src/main/java/org/jacoco/examples/expressions/
H A DConst.java14 public class Const implements IExpression { class in inherits:IExpression
18 public Const(final double value) { method in class:Const
/external/clang/test/CXX/dcl.decl/dcl.meaning/dcl.fct/dcl.fct.def.default/
H A Dp2.cpp6 struct Const { struct in namespace:move
7 Const(const Const&&) = default; // expected-error {{the parameter for an explicitly-defaulted move constructor may not be const}}
8 Const& operator=(const Const&&) = default; // expected-error {{the parameter for an explicitly-defaulted move assignment operator may not be const}}
35 struct Const { struct in namespace:copy
36 Const(const Const&) = default;
37 Const& operator=(const Const
[all...]
/external/tensorflow/tensorflow/cc/ops/
H A Dconst_op.h26 /// @defgroup const_op Const Op
29 Output Const(const Scope& scope, const Input::Initializer& val);
36 Output Const(const Scope& scope, const Input::Initializer& val) { function in namespace:tensorflow::ops
37 auto orig_const_output = Const(scope, val);
47 return Const(scope, Input::Initializer(t));
67 Output Const(const Scope& scope, const T& v, const TensorShape shape) { function in namespace:tensorflow::ops
68 return Const(scope, Input::Initializer(v, shape));
72 Output Const(const Scope& scope, const std::initializer_list<T>& v, function in namespace:tensorflow::ops
74 return Const(scope, Input::Initializer(v, shape));
H A Dconst_op.cc29 const string unique_name = scope.GetUniqueNameForOp("Const");
30 auto builder = NodeBuilder(unique_name, "Const")
44 Output Const(const Scope& scope, const Input::Initializer& val) { function in namespace:tensorflow::ops
68 Const(scope.NewSubScope("Const"), Input::Initializer(inp.tensor()))};
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/parse/
H A Dast.py117 class Const(Definition): class in inherits:Definition
126 super(Const, self).__init__(name, **kwargs)
131 return super(Const, self).__eq__(other) and \
240 _list_item_type = (Const, Enum, Method)
370 _list_item_type = (Const, Enum, StructField)
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
H A DSDNodeDbgValue.h44 const Value *Const; // valid for constants member in union:llvm::SDDbgValue::__anon22665
67 u.Const = C;
90 const Value *getConst() { assert (kind==CONST); return u.Const; }
/external/tensorflow/tensorflow/java/src/test/java/org/tensorflow/op/
H A DScopeTest.java129 Const<Integer> c1 = Const.create(s, 42);
130 assertEquals("Const", c1.output().op().name());
131 Const<Integer> c2 = Const.create(s, 7);
133 Const<Integer> c3 = Const.create(s.withName("four"), 4);
135 Const<Integer> c4 = Const.create(s.withName("four"), 4);
145 assertEquals("child/Const", Cons
186 private static final class Const<T> { class in class:ScopeTest
219 Const(Output<T> o) { method in class:ScopeTest.Const
[all...]
/external/turbine/java/com/google/turbine/model/
H A DConst.java25 public abstract class Const { class
39 /** Subtypes of {@link Const} for primitive and String literals. */
40 public abstract static class Value extends Const {
585 public static class ArrayInitValue extends Const {
587 private final ImmutableList<Const> elements;
589 public ArrayInitValue(ImmutableList<Const> elements) {
598 public ImmutableList<Const> elements() {
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSDNodeDbgValue.h43 const Value *Const; // valid for constants member in union:llvm::SDDbgValue::__anon13983
72 u.Const = C;
100 const Value *getConst() const { assert (kind==CONST); return u.Const; }
/external/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp124 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1)); local
127 if (!Const)
134 // Check if Const is one of our recognized consts.
136 if (Const->isZero()) {
139 } else if (Const->isInfinity()) {
141 WhichConst = Const->isNegative() ? 2 : 1;
142 } else if (Const->isExactlyValue(Smallest)) {
148 } else if (Const->isExactlyValue(NegSmallest)) {
234 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1)); local
237 if (!Const)
[all...]
/external/clang/test/CodeGenCXX/
H A Dmicrosoft-abi-member-pointers.cpp122 namespace Const { namespace
128 // CHECK: @"\01?s_f_mp@Const@@3P8Single@@AEXXZQ2@" =
130 // CHECK: @"\01?m_f_mp@Const@@3P8Multiple@@AEXXZQ2@" =
132 // CHECK: @"\01?v_f_mp@Const@@3P8Virtual@@AEXXZQ2@" =
134 // CHECK: @"\01?u_f_mp@Const@@3P8Unspecified@@AEXXZQ2@" =
136 // CHECK: @"\01?us_f_mp@Const@@3P8UnspecSingle@@AEXXZQ2@" =
/external/libmojo/third_party/jinja2/
H A Dnodes.py430 class Const(Literal): class in inherits:Literal
898 EvalContextModifier(options=[Keyword('autoescape', Const(True))])
/external/llvm/lib/Analysis/
H A DMemoryBuiltins.cpp677 SizeOffsetType Const = Visitor.compute(V); local
678 if (Visitor.bothKnown(Const))
679 return std::make_pair(ConstantInt::get(Context, Const.first),
680 ConstantInt::get(Context, Const.second));
/external/python/cpython2/Lib/compiler/
H A Dast.py360 class Const(Node): class in inherits:Node
372 return "Const(%s)" % (repr(self.value),)
/external/tensorflow/tensorflow/c/
H A Dc_test_util.cc101 TF_OperationDescription* desc = TF_NewOperation(graph, "Const", name);
110 TF_Operation* Const(TF_Tensor* t, TF_Graph* graph, TF_Status* s, function
120 return Const(tensor.get(), graph, s, name);
126 return Const(tensor.get(), graph, s, name);
285 if (node_def.op() != "Const" || node_def.name() != "scalar") {
/external/tensorflow/tensorflow/core/framework/
H A Dfunction.h145 static Node Const(const string& name, const T& val) { function in class:tensorflow::FunctionDefHelper
146 Node n = {{name}, "Const"};
156 static Node Const(const string& name, gtl::ArraySlice<T> vals) { function in class:tensorflow::FunctionDefHelper
157 Node n = {{name}, "Const"};
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
H A DSCCP.cpp1784 Constant *Const = IV.isConstant() local
1786 DEBUG(dbgs() << " Constant: " << *Const << " = " << *Inst);
1789 Inst->replaceAllUsesWith(Const);
1983 Constant *Const = IV.isConstant() local
1985 DEBUG(dbgs() << " Constant: " << *Const << " = " << *Inst);
1989 Inst->replaceAllUsesWith(Const);
/external/swiftshader/third_party/subzero/src/
H A DIceConverter.cpp132 Ice::Constant *convertConstant(const Constant *Const) { argument
133 if (const auto GV = dyn_cast<GlobalValue>(Const)) {
149 } else if (const auto CI = dyn_cast<ConstantInt>(Const)) {
152 } else if (const auto CFP = dyn_cast<ConstantFP>(Const)) {
160 } else if (const auto CU = dyn_cast<UndefValue>(Const)) {
215 if (const auto Const = dyn_cast<Constant>(Op)) {
216 return convertConstant(Const);
H A DIceOperand.h196 auto *Const = local
198 Const->initShouldBePooled();
199 if (Const->getShouldBePooled())
200 Const->initName(Ctx);
201 return Const;
H A DWasmTranslator.cpp366 auto *Const = Ctx->getConstantInt32(Value); local
367 assert(Const);
369 LOG(out << Node(Const) << "\n");
370 return OperandNode(Const);
374 auto *Const = Ctx->getConstantInt64(Value); local
375 assert(Const);
376 LOG(out << Node(Const) << "\n");
377 return OperandNode(Const);
381 auto *Const = Ctx->getConstantFloat(Value); local
382 assert(Const);
388 auto *Const = Ctx->getConstantDouble(Value); local
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DSCCP.cpp1514 Constant *Const = nullptr; local
1528 Const = ConstantStruct::get(ST, ConstVals);
1533 Const = IV.isConstant() ? IV.getConstant() : UndefValue::get(V->getType());
1535 assert(Const && "Constant is nullptr here!");
1536 DEBUG(dbgs() << " Constant: " << *Const << " = " << *V << '\n');
1539 V->replaceAllUsesWith(Const);
/external/spirv-llvm/lib/SPIRV/
H A DSPIRVInternal.h81 const static char *Const = "const"; member in namespace:SPIRV::kOCLTypeQualifierName
/external/tensorflow/tensorflow/python/framework/
H A Dfunction_test.py571 def Const(): function in function:FunctionTest.testCallErrors
584 _ = Const()
589 _ = Const(1)
591 _ = Const(1, 2)

Completed in 873 milliseconds

12