Home
last modified time | relevance | path

Searched refs:Const (Results 1 – 25 of 136) sorted by relevance

123456

/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltinsSPIRVCommon.td11 def num_workgroups : SPIRVBuiltin<"size_t(int)", [NoThrow, Const]>;
12 def workgroup_size : SPIRVBuiltin<"size_t(int)", [NoThrow, Const]>;
13 def workgroup_id : SPIRVBuiltin<"size_t(int)", [NoThrow, Const]>;
14 def local_invocation_id : SPIRVBuiltin<"size_t(int)", [NoThrow, Const]>;
15 def global_invocation_id : SPIRVBuiltin<"size_t(int)", [NoThrow, Const]>;
16 def subgroup_size : SPIRVBuiltin<"uint32_t()", [NoThrow, Const]>;
17 def num_subgroups : SPIRVBuiltin<"uint32_t()", [NoThrow, Const]>;
18 def subgroup_id : SPIRVBuiltin<"uint32_t()", [NoThrow, Const]>;
19 def subgroup_local_invocation_id : SPIRVBuiltin<"uint32_t()", [NoThrow, Const]>;
21 def distance : SPIRVBuiltin<"void(...)", [NoThrow, Const]>;
[all …]
H A DBuiltinsX86.td24 let Attributes = [Const, NoThrow, RequiredVectorWidth<128>];
28 let Attributes = [Const, NoThrow, RequiredVectorWidth<256>];
32 let Attributes = [Const, NoThrow, RequiredVectorWidth<512>];
55 let Attributes = [NoThrow, Const, RequiredVectorWidth<64>], Features = "sse" in {
61 let Attributes = [Const, NoThrow, RequiredVectorWidth<128>] in {
134 let Attributes = [Const, NoThrow, RequiredVectorWidth<256>], Features = "avx" in {
141 let Features = "mmx", Header = "mmintrin.h", Attributes = [NoThrow, Const] in {
146 let Features = "prfchw", Header = "intrin.h", Attributes = [NoThrow, Const] in {
157 let Features = "sse", Header = "xmmintrin.h", Attributes = [NoThrow, Const] in {
177 let Features = "sse", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
[all …]
H A DBuiltins.td130 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
136 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
196 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
208 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
214 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
220 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
226 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
238 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
244 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const, Constexpr];
250 let Attributes = [FunctionWithBuiltinPrefix, NoThrow, Const];
[all …]
H A DBuiltinsSPIRVCL.td12 : SPIRVBuiltin<"void*(void*, int)", [NoThrow, Const, CustomTypeChecking]>;
13 def global_size : SPIRVBuiltin<"size_t(int)", [NoThrow, Const]>;
14 def global_offset : SPIRVBuiltin<"size_t(int)", [NoThrow, Const]>;
15 def subgroup_max_size : SPIRVBuiltin<"uint32_t()", [NoThrow, Const]>;
H A DBuiltinsSPIRVVK.td12 def reflect : SPIRVBuiltin<"void(...)", [NoThrow, Const]>;
13 def faceforward : SPIRVBuiltin<"void(...)", [NoThrow, Const, CustomTypeChecking]>;
H A DBuiltinsX86_64.td20 let Header = "intrin.h", Languages = "ALL_MS_LANGUAGES", Attributes = [NoThrow, Const, RequireDecla…
31 let Header = "intrin.h", Languages = "ALL_MS_LANGUAGES", Attributes = [NoThrow, Const, RequireDecla…
45 let Features = "sse", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
50 let Features = "sse2", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
59 let Features = "sse4.1", Attributes = [NoThrow, Const, RequiredVectorWidth<128>] in {
63 let Features = "crc32", Attributes = [NoThrow, Const] in {
67 let Features = "avx", Attributes = [NoThrow, Const, RequiredVectorWidth<256>] in {
129 let Features = "bmi", Attributes = [NoThrow, Const, Constexpr] in {
133 let Attributes = [NoThrow, Const, Constexpr] in {
138 let Features = "bmi2", Attributes = [NoThrow, Const, Constexpr] in {
[all …]
H A DBuiltinsRISCVXCV.td20 let Attributes = [NoThrow, Const] in {
41 } // Attributes = [NoThrow, Const]
H A DBuiltinsDirectX.td13 let Attributes = [NoThrow, Const];
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDynamicRecursiveASTVisitor.cpp92 template <bool Const> struct Impl : RecursiveASTVisitor<Impl<Const>> {
93 DynamicRecursiveASTVisitorBase<Const> &Visitor;
94 Impl(DynamicRecursiveASTVisitorBase<Const> &Visitor) : Visitor(Visitor) {} in Impl()
271 template <bool Const> void DynamicRecursiveASTVisitorBase<Const>::anchor() {} in anchor()
280 template <bool Const> \
281 bool DynamicRecursiveASTVisitorBase<Const>::Function( \
283 return Impl<Const>(*this).RecursiveASTVisitor<Impl<Const>>::Function( \
289 template <bool Const> \
290 bool DynamicRecursiveASTVisitorBase<Const>::Function(Type Param) { \
291 return Impl<Const>(*this).RecursiveASTVisitor<Impl<Const>>::Function( \
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DOpenCLBuiltins.td311 list<bit> Const = [0, 1, 0];
525 Attr.Const>;
529 Attr.Const>;
539 def : Builtin<"get_work_dim", [UInt], Attr.Const>;
543 def : Builtin<name, [Size, UInt], Attr.Const>;
574 def : Builtin<name, [FGenTypeN, FGenTypeN], Attr.Const>;
577 def : Builtin<name, [GenTypeFloatVecAndScalar, GenTypeUIntVecAndScalar], Attr.Const>;
578 def : Builtin<name, [GenTypeDoubleVecAndScalar, GenTypeULongVecAndScalar], Attr.Const>;
579 def : Builtin<name, [GenTypeHalfVecAndScalar, GenTypeUShortVecAndScalar], Attr.Const>;
586 def : Builtin<name, [FGenTypeN, FGenTypeN, FGenTypeN], Attr.Const>;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTDC.cpp124 auto *Const = dyn_cast<ConstantFP>(I.getOperand(1)); in convertFCmp() local
127 if (!Const) in convertFCmp()
136 if (Const->isZero()) { in convertFCmp()
139 } else if (Const->isInfinity()) { in convertFCmp()
141 WhichConst = Const->isNegative() ? 2 : 1; in convertFCmp()
142 } else if (Const->isExactlyValue(Smallest)) { in convertFCmp()
148 } else if (Const->isExactlyValue(NegSmallest)) { in convertFCmp()
234 auto *Const = dyn_cast<ConstantInt>(I.getOperand(1)); in convertICmp() local
237 if (!Const) in convertICmp()
247 if (Pred == CmpInst::ICMP_SLT && Const->isZero()) { in convertICmp()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSDNodeDbgValue.h57 return u.Const; in getConst()
81 static SDDbgOperand fromConst(const Value *Const) { in fromConst() argument
82 return SDDbgOperand(Const); in fromConst()
109 const Value *Const; ///< Valid for constants. member
120 SDDbgOperand(const Value *C) : kind(CONST) { u.Const = C; } in SDDbgOperand()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVCallLowering.cpp82 FuncControl |= static_cast<uint32_t>(SPIRV::FunctionControl::Const); in getFunctionControl()
158 ConstantInt *Const = getConstInt(MD, 0); in getOriginalFunctionType() local
159 if (Const) { in getOriginalFunctionType()
162 assert(Const->getSExtValue() >= -1); in getOriginalFunctionType()
165 if (Const->getSExtValue() == -1) in getOriginalFunctionType()
168 ArgTypes[Const->getSExtValue()] = CMeta->getType(); in getOriginalFunctionType()
404 ConstantInt *Const = getConstInt(MD2, 0); in lowerFormalArguments() local
405 assert(Const && "MDOperand should be ConstantInt"); in lowerFormalArguments()
407 static_cast<SPIRV::Decoration::Decoration>(Const->getZExtValue()); in lowerFormalArguments()
410 ConstantInt *Const = getConstInt(MD2, j); in lowerFormalArguments() local
[all …]
H A DSPIRVPreLegalizer.cpp57 auto *Const = in addConstantsToTrack() local
61 if (auto *GV = dyn_cast<GlobalValue>(Const)) { in addConstantsToTrack()
69 Register Reg = GR->find(Const, &MF); in addConstantsToTrack()
71 if (auto *ConstVec = dyn_cast<ConstantDataVector>(Const)) { in addConstantsToTrack()
75 GR->add(Const, BuildVec); in addConstantsToTrack()
88 if (Const->getType()->isTargetExtTy()) { in addConstantsToTrack()
92 GR->add(Const, SrcMI); in addConstantsToTrack()
95 TargetExtConstTypes[SrcMI] = Const->getType(); in addConstantsToTrack()
96 if (Const->isNullValue()) { in addConstantsToTrack()
100 Const->getType(), MIB, SPIRV::AccessQualifier::ReadWrite, in addConstantsToTrack()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp294 Constant *Const, PHINode *Root, DenseSet<PHINode *> &TransitivePHIs) { in discoverTransitivelyIncomingValues() argument
320 if (C != Const) in discoverTransitivelyIncomingValues()
342 Constant *Const = nullptr; in visitPHINode() local
354 if (!Const) in visitPHINode()
355 Const = C; in visitPHINode()
357 if (C != Const) in visitPHINode()
379 if (!Const) in visitPHINode()
383 return Const; in visitPHINode()
386 if (!discoverTransitivelyIncomingValues(Const, &I, TransitivePHIs)) in visitPHINode()
389 return Const; in visitPHINode()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DWithCache.h34 template <typename T, bool Const>
35 using conditionally_const_t = std::conditional_t<Const, const T, T>;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTypePromotion.cpp343 if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(0))) in isSafeWrap() local
344 ICmpConstant = Const; in isSafeWrap()
345 else if (auto *Const = dyn_cast<ConstantInt>(CI->getOperand(1))) in isSafeWrap() local
346 ICmpConstant = Const; in isSafeWrap()
492 if (auto *Const = dyn_cast<ConstantInt>(Op)) { in PromoteTree() local
502 NewConst = -((-Const->getValue()).zext(PromotedWidth)); in PromoteTree()
504 NewConst = -((-Const->getValue()).zext(PromotedWidth)); in PromoteTree()
506 NewConst = Const->getValue().zext(PromotedWidth); in PromoteTree()
508 NewConst = Const->getValue().zext(PromotedWidth); in PromoteTree()
510 I->setOperand(i, ConstantInt::get(Const->getContext(), NewConst)); in PromoteTree()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZHLASMAsmStreamer.cpp218 int64_t Const; in emitHLASMValueImpl() local
233 Const = cast<MCConstantExpr>(BE.getRHS())->getValue(); in emitHLASMValueImpl()
234 OS << '/' << (1 << Const); in emitHLASMValueImpl()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DRecordName.cpp201 if (Mods & uint16_t(ModifierOptions::Const)) in visitKnownRecord()
330 ConstantSym Const(SymbolKind::S_CONSTANT); in getSymbolName() local
332 cantFail(Mapping.visitKnownRecord(Sym, Const)); in getSymbolName()
334 return Const.Name; in getSymbolName()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DEVLIndVarSimplify.cpp69 if (const auto *Const = dyn_cast<SCEVConstant>(LHS); in getVFFromIndVar() local
70 Const && isa<SCEVVScale>(RHS)) { in getVFFromIndVar()
71 uint64_t V = Const->getAPInt().getLimitedValue(); in getVFFromIndVar()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp329 auto Const = buildInstr(TargetOpcode::G_CONSTANT) in buildConstant() local
332 return buildSplatBuildVector(Res, Const); in buildConstant()
335 auto Const = buildInstr(TargetOpcode::G_CONSTANT); in buildConstant() local
336 Const->setDebugLoc(DebugLoc()); in buildConstant()
337 Res.addDefToMIB(*getMRI(), Const); in buildConstant()
338 Const.addCImm(&Val); in buildConstant()
339 return Const; in buildConstant()
366 auto Const = buildInstr(TargetOpcode::G_FCONSTANT) in buildFConstant() local
370 return buildSplatBuildVector(Res, Const); in buildFConstant()
373 auto Const = buildInstr(TargetOpcode::G_FCONSTANT); in buildFConstant() local
[all …]
H A DUtils.cpp307 MachineInstr *Const = MRI.getVRegDef(Reg); in getIConstantFromReg() local
308 assert((Const && Const->getOpcode() == TargetOpcode::G_CONSTANT) && in getIConstantFromReg()
310 return Const->getOperand(1).getCImm()->getValue(); in getIConstantFromReg()
1157 auto Const = getIConstantVRegVal(MO.getReg(), MRI); in isKnownToBeAPowerOfTwo() local
1158 if (!Const || !Const->zextOrTrunc(BitWidth).isPowerOf2()) in isKnownToBeAPowerOfTwo()
2024 llvm::GIConstant::getConstant(Register Const, const MachineRegisterInfo &MRI) { in getConstant() argument
2025 MachineInstr *Constant = getDefIgnoringCopies(Const, MRI); in getConstant()
2050 getIConstantVRegValWithLookThrough(Const, MRI); in getConstant()
2064 llvm::GFConstant::getConstant(Register Const, const MachineRegisterInfo &MRI) { in getConstant() argument
2065 MachineInstr *Constant = getDefIgnoringCopies(Const, MRI); in getConstant()
[all …]
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DClangSyntaxEmitter.cpp223 for (const char *Const : {"", "const "}) in EmitClangSyntaxNodeClasses()
228 Role, Constraint.NodeType, Const); in EmitClangSyntaxNodeClasses()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DNativeTypeBuiltin.cpp34 return (Mods & ModifierOptions::Const) != ModifierOptions::None; in isConstType()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp580 ConstantAggregateBuilder &Const, CharUnits Offset,
666 ConstantAggregateBuilder &Const, in EmitDesignatedInitUpdater() argument
670 return ConstStructBuilder::UpdateStruct(Emitter, Const, Offset, Updater); in EmitDesignatedInitUpdater()
696 if (!Const.add(FillC, Offset, true)) in EmitDesignatedInitUpdater()
701 if (!EmitDesignatedInitUpdater(Emitter, Const, Offset, ElemType, in EmitDesignatedInitUpdater()
705 Const.condense(Offset, ElemTy); in EmitDesignatedInitUpdater()
708 if (!Const.add(Val, Offset, true)) in EmitDesignatedInitUpdater()
989 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct() local
990 ConstStructBuilder Builder(Emitter, Const, CharUnits::Zero()); in BuildStruct()
1001 ConstantAggregateBuilder Const(Emitter.CGM); in BuildStruct() local
[all …]

123456