Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: src/IceGlobalContext.h

Issue 353553004: Add support for vector types and vector constants. (Closed) Base URL: https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Patch Set: 1) Remove StringList. 2) Assign redundant assign TODO to stichnot. 3) Fix RUN line. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===// 1 //===- subzero/src/IceGlobalContext.h - Global context defs -----*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // This file declares aspects of the compilation that persist across 10 // This file declares aspects of the compilation that persist across
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 HasEmittedFirstMethod = true; 68 HasEmittedFirstMethod = true;
69 return HasEmitted; 69 return HasEmitted;
70 } 70 }
71 71
72 // Manage Constants. 72 // Manage Constants.
73 // getConstant*() functions are not const because they might add 73 // getConstant*() functions are not const because they might add
74 // something to the constant pool. 74 // something to the constant pool.
75 Constant *getConstantInt(Type Ty, uint64_t ConstantInt64); 75 Constant *getConstantInt(Type Ty, uint64_t ConstantInt64);
76 Constant *getConstantFloat(float Value); 76 Constant *getConstantFloat(float Value);
77 Constant *getConstantDouble(double Value); 77 Constant *getConstantDouble(double Value);
78 Constant *getConstantVector(Type Ty, const Vect128 &Vector);
79 Constant *getConstantBitVector(Type Ty, const BitVect &Vector);
78 // Returns a symbolic constant. 80 // Returns a symbolic constant.
79 Constant *getConstantSym(Type Ty, int64_t Offset, const IceString &Name = "", 81 Constant *getConstantSym(Type Ty, int64_t Offset, const IceString &Name = "",
80 bool SuppressMangling = false); 82 bool SuppressMangling = false);
81 // Returns an undef. 83 // Returns an undef.
82 Constant *getConstantUndef(Type Ty); 84 Constant *getConstantUndef(Type Ty);
83 // Returns a zero value. 85 // Returns a zero value.
84 Constant *getConstantZero(Type Ty); 86 Constant *getConstantZero(Type Ty);
85 // getConstantPool() returns a copy of the constant pool for 87 // getConstantPool() returns a copy of the constant pool for
86 // constants of a given type. 88 // constants of a given type.
87 ConstantList getConstantPool(Type Ty) const; 89 ConstantList getConstantPool(Type Ty) const;
(...skipping 15 matching lines...) Expand all
103 const OptLevel Opt; 105 const OptLevel Opt;
104 const IceString TestPrefix; 106 const IceString TestPrefix;
105 bool HasEmittedFirstMethod; 107 bool HasEmittedFirstMethod;
106 GlobalContext(const GlobalContext &) LLVM_DELETED_FUNCTION; 108 GlobalContext(const GlobalContext &) LLVM_DELETED_FUNCTION;
107 GlobalContext &operator=(const GlobalContext &) LLVM_DELETED_FUNCTION; 109 GlobalContext &operator=(const GlobalContext &) LLVM_DELETED_FUNCTION;
108 }; 110 };
109 111
110 } // end of namespace Ice 112 } // end of namespace Ice
111 113
112 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H 114 #endif // SUBZERO_SRC_ICEGLOBALCONTEXT_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698